11 lines
260 B
Ruby
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
|