osem-fcy/db/migrate/20130711043459_create_events_registrations_table.rb

12 lines
246 B
Ruby
Raw Normal View History

2013-07-11 07:43:52 +03:00
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