2018-12-23 12:14:25 +05:30
|
|
|
class AddSentNotifications < ActiveRecord::Migration[4.2]
|
2015-09-25 12:07:36 +05:30
|
|
|
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
|