2019-04-28 11:56:16 +03:00
|
|
|
class CreateSlots < ActiveRecord::Migration[4.2]
|
2014-10-12 13:26:07 +03:00
|
|
|
def change
|
|
|
|
create_table :slots do |t|
|
|
|
|
t.references :hall, index: true
|
|
|
|
t.timestamp :starts_at, null: false
|
|
|
|
t.timestamp :ends_at, null: false
|
|
|
|
t.references :event, index: true
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|