osem-fcy/db/migrate/20130711043459_create_events_registrations_table.rb
2013-07-11 07:43:52 +03:00

11 lines
246 B
Ruby

class CreateEventsRegistrationsTable < ActiveRecord::Migration
def up
create_table :events_registrations, :id => false do |t|
t.references :registration, :event
end
end
def down
drop_table :events_registrations
end
end