add option to pre register to events

This commit is contained in:
differentreality 2013-07-11 07:43:52 +03:00
parent 8286c8130d
commit 750e31c11a
7 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,11 @@
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

View file

@ -0,0 +1,5 @@
class AddRequireRegistrationToEvents < ActiveRecord::Migration
def change
add_column :events, :require_registration, :boolean
end
end