Registration for Events

This commit is contained in:
Stella Rouzi 2016-04-22 18:18:46 +03:00
parent f188fd5575
commit 01ec43e53a
35 changed files with 522 additions and 46 deletions

View file

@ -0,0 +1,5 @@
class AddMaxAttendeesToEvents < ActiveRecord::Migration
def change
add_column :events, :max_attendees, :integer
end
end

View file

@ -0,0 +1,5 @@
class AddAttendedToEventsRegistrations < ActiveRecord::Migration
def change
add_column :events_registrations, :attended, :boolean, default: false, null: false
end
end

View file

@ -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