summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2014-12-04 14:54:34 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-01-12 19:48:45 +0100
commit0e93695f8ef3a889104b23ce9be4f37042d7388f (patch)
treed67d124544bc1cf8622f58edca5c3b5c9d065fe2 /db
parentfc08a10dba559a93427b6ef31b33c45cd2194c40 (diff)
downloadgitlab-ci-0e93695f8ef3a889104b23ce9be4f37042d7388f.tar.gz
Added missing create service
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20141204133321_create_service.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20141204133321_create_service.rb b/db/migrate/20141204133321_create_service.rb
new file mode 100644
index 0000000..d87115c
--- /dev/null
+++ b/db/migrate/20141204133321_create_service.rb
@@ -0,0 +1,15 @@
+class CreateService < ActiveRecord::Migration
+ def change
+ create_table :services, force: true do |t|
+ t.string :type
+ t.string :title
+ t.integer :project_id, null: false
+ t.datetime :created_at
+ t.datetime :updated_at
+ t.boolean :active, default: false, null: false
+ t.text :properties
+ end
+
+ add_index :services, [:project_id], name: :index_services_on_project_id, using: :btree
+ end
+end