1
0

20160224223247_create_mentions.rb 301 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateMentions < ActiveRecord::Migration[4.2]
  3. def change
  4. create_table :mentions do |t|
  5. t.integer :account_id
  6. t.integer :status_id
  7. t.timestamps null: false
  8. end
  9. add_index :mentions, [:account_id, :status_id], unique: true
  10. end
  11. end