Registration for Events
This commit is contained in:
parent
f188fd5575
commit
01ec43e53a
35 changed files with 522 additions and 46 deletions
5
db/migrate/20160323154504_add_max_attendees_to_events.rb
Normal file
5
db/migrate/20160323154504_add_max_attendees_to_events.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddMaxAttendeesToEvents < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :events, :max_attendees, :integer
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddAttendedToEventsRegistrations < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :events_registrations, :attended, :boolean, default: false, null: false
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class AddIdAndCreatedAtToEventsRegistrations < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :events_registrations, :id, :primary_key
|
||||
add_column :events_registrations, :created_at, :datetime
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue