debian-mirror-gitlab/db/migrate/20150818213832_add_sent_notifications.rb
2018-11-18 11:00:15 +05:30

13 lines
360 B
Ruby

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