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

20150818213832_add_sent_notifications.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa0c3ce0acfda7d9f675050369796bbf2cfad876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# rubocop:disable all
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