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.
evoresa/db/migrate/20100722153250_create_booki...

16 lines
261 B
Ruby

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