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
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-19 01:46:36 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-19 01:46:36 +0300
commitf76eac56b9d7d4ae61010cddcca68682824b2239 (patch)
tree703e9cb22b0e44880775d0a4bb5bdbebc87a563f /db/migrate
parent204914983a015170ea1ca4cf6040c04d9a1ec1d9 (diff)
Reply by email POC
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150818213832_add_sent_notifications.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20150818213832_add_sent_notifications.rb b/db/migrate/20150818213832_add_sent_notifications.rb
new file mode 100644
index 00000000000..43e8d6a1a82
--- /dev/null
+++ b/db/migrate/20150818213832_add_sent_notifications.rb
@@ -0,0 +1,13 @@
+class AddSentNotifications < ActiveRecord::Migration
+ def change
+ create_table :sent_notifications do |t|
+ t.references :project
+ t.references :noteable, polymorphic: true
+ t.references :recipient
+ t.string :commit_id
+ t.string :reply_key, null: false
+ end
+
+ add_index :sent_notifications, :reply_key, unique: true
+ end
+end