20170508230434_create_conversation_mutes.rb 335 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateConversationMutes < ActiveRecord::Migration[5.0]
  3. def change
  4. create_table :conversation_mutes do |t|
  5. t.integer :account_id, null: false
  6. t.bigint :conversation_id, null: false
  7. end
  8. add_index :conversation_mutes, [:account_id, :conversation_id], unique: true
  9. end
  10. end