polyglot/db/migrate/20180829122930_create_chat_room_participations.rb
2018-08-29 13:44:10 +01:00

11 lines
260 B
Ruby

class CreateChatRoomParticipations < ActiveRecord::Migration[5.2]
def change
create_table :chat_room_participations do |t|
t.references :user, foreign_key: true
t.references :chat_room, foreign_key: true
t.timestamps
end
end
end