2018-05-07 16:47:29 -07:00
|
|
|
# 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
|