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

14 lines
274 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-07-11 07:43:52 +03:00
class CreateEventsRegistrationsTable < ActiveRecord::Migration
def up
2014-07-21 14:49:05 +02:00
create_table :events_registrations, id: false do |t|
2013-07-11 07:43:52 +03:00
t.references :registration, :event
end
end
def down
drop_table :events_registrations
end
end