about summary refs log tree commit diff
path: root/db/migrate/20160224223247_create_mentions.rb
blob: 6dd742d3b1b1593a8968d54d9f25ab51107d0a89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateMentions < ActiveRecord::Migration[4.2]
  def change
    create_table :mentions do |t|
      t.integer :account_id
      t.integer :status_id

      t.timestamps null: false
    end

    add_index :mentions, [:account_id, :status_id], unique: true
  end
end