summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2015-02-11 09:24:40 -0800
committerMarin Jankovski <maxlazio@gmail.com>2015-02-11 09:24:40 -0800
commit55153660647741af22be2278d292de8a54bc0402 (patch)
tree108225eae9e7f2ebef901e6df83e52e667774335 /db
parent29e606deeca83c41d72f880d9574af5983686ab3 (diff)
downloadgitlab-ce-55153660647741af22be2278d292de8a54bc0402.tar.gz
Add template boolean to services.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150211172122_add_template_to_service.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20150211172122_add_template_to_service.rb b/db/migrate/20150211172122_add_template_to_service.rb
new file mode 100644
index 00000000000..b1bfbc45ee9
--- /dev/null
+++ b/db/migrate/20150211172122_add_template_to_service.rb
@@ -0,0 +1,5 @@
+class AddTemplateToService < ActiveRecord::Migration
+ def change
+ add_column :services, :template, :boolean, default: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8b6142a80a0..d9f954d5c6c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -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