polyglot/db/migrate/20180829122930_create_chat_...

11 lines
260 B
Ruby
Raw Normal View History

2018-08-29 12:44:10 +00:00
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