mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-08-30 00:59:13 +00:00
12 lines
256 B
Ruby
12 lines
256 B
Ruby
class CreateRequests < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :requests do |t|
|
|
t.references :user, foreign_key: true
|
|
t.references :chat_room, foreign_key: true
|
|
t.boolean :accepted
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|