2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2015-08-18 18:46:36 -04:00
|
|
|
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
|