Chatwoot/db/migrate/20220308193420_add_conversation_participants.rb

12 lines
518 B
Ruby
Raw Normal View History

2022-03-08 20:43:14 +00:00
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 }
2022-03-09 12:32:03 +00:00
t.datetime 'created_at', precision: 6, null: false
t.datetime 'updated_at', precision: 6, null: false
2022-03-08 20:43:14 +00:00
end
end
end