class AddConversationParticipants < ActiveRecord::Migration[6.1] def change create_table 'conversation_participants', force: :cascade do |t| t.references :account, null: false, foreign_key: { on_delete: :cascade } t.references :user, null: false, foreign_key: { on_delete: :cascade } t.references :conversation, null: false, foreign_key: { on_delete: :cascade } t.datetime 'created_at', precision: 6, null: false t.datetime 'updated_at', precision: 6, null: false end end end