20170301222600_create_mutes.rb 333 B

12345678910111213
  1. # frozen_string_literal: true
  2. class CreateMutes < ActiveRecord::Migration[5.0]
  3. def change
  4. create_table :mutes do |t|
  5. t.integer :account_id, null: false
  6. t.integer :target_account_id, null: false
  7. t.timestamps null: false
  8. end
  9. add_index :mutes, [:account_id, :target_account_id], unique: true
  10. end
  11. end