about summary refs log tree commit diff
path: root/db/migrate/20160224223247_create_mentions.rb
blob: 095f6b7d269c8d0d7bd6a9a4935787005053afda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateMentions < ActiveRecord::Migration
  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