This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
class CreateBookings < ActiveRecord::Migration
|
|
def self.up
|
|
create_table :bookings do |t|
|
|
t.timestamp :start_at
|
|
t.timestamp :end_at
|
|
t.references :event
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
drop_table :bookings
|
|
end
|
|
end
|