Commit 55153660 authored by Marin Jankovski's avatar Marin Jankovski

Add template boolean to services.

parent 29e606de
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# updated_at :datetime # updated_at :datetime
# active :boolean default(FALSE), not null # active :boolean default(FALSE), not null
# properties :text # properties :text
# # tempalate :boolean default(FALSE)
# To add new service you should build a class inherited from Service # To add new service you should build a class inherited from Service
# and implement a set of methods # and implement a set of methods
......
class AddTemplateToService < ActiveRecord::Migration
def change
add_column :services, :template, :boolean, default: false
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150209222013) do ActiveRecord::Schema.define(version: 20150211172122) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
...@@ -365,6 +365,7 @@ ActiveRecord::Schema.define(version: 20150209222013) do ...@@ -365,6 +365,7 @@ ActiveRecord::Schema.define(version: 20150209222013) do
t.datetime "updated_at" t.datetime "updated_at"
t.boolean "active", default: false, null: false t.boolean "active", default: false, null: false
t.text "properties" t.text "properties"
t.boolean "template", default: false
end end
add_index "services", ["created_at", "id"], name: "index_services_on_created_at_and_id", using: :btree add_index "services", ["created_at", "id"], name: "index_services_on_created_at_and_id", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment