Add template boolean to services.

This commit is contained in:
Marin Jankovski 2015-02-11 09:24:40 -08:00
parent 29e606deec
commit 5515366064
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
class AddTemplateToService < ActiveRecord::Migration
def change
add_column :services, :template, :boolean, default: false
end
end

View File

@ -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