Add template boolean to services.
This commit is contained in:
parent
29e606deec
commit
5515366064
|
@ -10,7 +10,7 @@
|
|||
# updated_at :datetime
|
||||
# active :boolean default(FALSE), not null
|
||||
# properties :text
|
||||
#
|
||||
# tempalate :boolean default(FALSE)
|
||||
|
||||
# To add new service you should build a class inherited from Service
|
||||
# and implement a set of methods
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddTemplateToService < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :services, :template, :boolean, default: false
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# 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
|
||||
enable_extension "plpgsql"
|
||||
|
@ -365,6 +365,7 @@ ActiveRecord::Schema.define(version: 20150209222013) do
|
|||
t.datetime "updated_at"
|
||||
t.boolean "active", default: false, null: false
|
||||
t.text "properties"
|
||||
t.boolean "template", default: false
|
||||
end
|
||||
|
||||
add_index "services", ["created_at", "id"], name: "index_services_on_created_at_and_id", using: :btree
|
||||
|
|
Loading…
Reference in New Issue