polyglot/db/migrate/20180829123049_create_reque...

12 lines
256 B
Ruby
Raw Permalink Normal View History

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