Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 22:14:05 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-20 13:33:49 +0400
commitc3b074acab554fc40a8fcb6060ed7ab10e4171a4 (patch)
treeb524e4c96f998534522f2b4b4fea9994da8c6983 /db
parentbe1dc5544a7840d17657d3d8fcecb0d0fd4401b5 (diff)
Service model and service hook
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20121119170638_create_services.rb12
-rw-r--r--db/migrate/20121120051432_add_service_id_to_web_hook.rb5
2 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20121119170638_create_services.rb b/db/migrate/20121119170638_create_services.rb
new file mode 100644
index 00000000000..f7cac1445a7
--- /dev/null
+++ b/db/migrate/20121119170638_create_services.rb
@@ -0,0 +1,12 @@
+class CreateServices < ActiveRecord::Migration
+ def change
+ create_table :services do |t|
+ t.string :type
+ t.string :title
+ t.string :token
+ t.integer :project_id, null: false
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20121120051432_add_service_id_to_web_hook.rb b/db/migrate/20121120051432_add_service_id_to_web_hook.rb
new file mode 100644
index 00000000000..77adf92578f
--- /dev/null
+++ b/db/migrate/20121120051432_add_service_id_to_web_hook.rb
@@ -0,0 +1,5 @@
+class AddServiceIdToWebHook < ActiveRecord::Migration
+ def change
+ add_column :web_hooks, :service_id, :integer, null: true
+ end
+end