mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #13 from differentreality/event_registration
Event registration
This commit is contained in:
commit
00af4e0aee
7 changed files with 29 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddRequireRegistrationToEvents < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :events, :require_registration, :boolean
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue