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
|
||||
11
db/schema.rb
11
db/schema.rb
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160309183052) do
|
||||
ActiveRecord::Schema.define(version: 20160403214841) do
|
||||
|
||||
create_table "ahoy_events", force: :cascade do |t|
|
||||
t.uuid "visit_id", limit: 16
|
||||
|
|
@ -225,11 +225,14 @@ ActiveRecord::Schema.define(version: 20160309183052) do
|
|||
t.integer "week"
|
||||
t.boolean "is_highlight", default: false
|
||||
t.integer "program_id"
|
||||
t.integer "max_attendees"
|
||||
end
|
||||
|
||||
create_table "events_registrations", id: false, force: :cascade do |t|
|
||||
t.integer "registration_id"
|
||||
t.integer "event_id"
|
||||
create_table "events_registrations", force: :cascade do |t|
|
||||
t.integer "registration_id"
|
||||
t.integer "event_id"
|
||||
t.boolean "attended", default: false, null: false
|
||||
t.datetime "created_at"
|
||||
end
|
||||
|
||||
create_table "lodgings", force: :cascade do |t|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue