Adding more registration options, and starting work on supporter levels

This commit is contained in:
Matt Barringer 2013-02-02 16:43:47 +01:00
parent 61a02d17a3
commit 973913b3bf
25 changed files with 228 additions and 20 deletions

View file

@ -0,0 +1,5 @@
class AddDietaryChoiceToConferences < ActiveRecord::Migration
def change
add_column :conferences, :use_dietary_choices, :boolean, :default => false
end
end

View file

@ -0,0 +1,13 @@
class CreateDietaryChoicesTable < ActiveRecord::Migration
def up
create_table :dietary_choices do |t|
t.references :conference
t.string :title, :null => false
t.timestamps
end
end
def down
drop_table :dietary_choices
end
end

View file

@ -0,0 +1,5 @@
class AddDietaryChoiceToRegistration < ActiveRecord::Migration
def change
add_column :registrations, :dietary_choice_id, :integer
end
end

View file

@ -0,0 +1,5 @@
class AddDietaryTextToRegistration < ActiveRecord::Migration
def change
add_column :registrations, :other_dietary_choice, :text
end
end

View file

@ -0,0 +1,5 @@
class AddHandicappedAccessToRegistrations < ActiveRecord::Migration
def change
add_column :registrations, :handicapped_access_required, :boolean, :default => false
end
end

View file

@ -0,0 +1,13 @@
class CreateSupporterLevelTable < ActiveRecord::Migration
def up
create_table :supporter_levels do |t|
t.references :conference
t.string :title, :null => false
t.string :url
end
end
def down
drop_table :supporter_levels
end
end

View file

@ -0,0 +1,15 @@
class CreateTableSupporterRegistrations < ActiveRecord::Migration
def up
create_table :supporter_registrations do |t|
t.references :registration
t.references :supporter_level
t.string :email
t.string :code
t.boolean :code_is_valid, :default => false
end
end
def down
drop_table :supporter_registrations
end
end

View file

@ -0,0 +1,5 @@
class AddUseSupporterLevelsToConferences < ActiveRecord::Migration
def change
add_column :conferences, :use_supporter_levels, :boolean, :default => false
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20130131100257) do
ActiveRecord::Schema.define(:version => 20130202131932) do
create_table "call_for_papers", :force => true do |t|
t.date "start_date", :null => false
@ -42,24 +42,33 @@ ActiveRecord::Schema.define(:version => 20130131100257) do
add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
create_table "conferences", :force => true do |t|
t.string "guid", :null => false
t.string "title", :null => false
t.string "short_title", :null => false
t.string "guid", :null => false
t.string "title", :null => false
t.string "short_title", :null => false
t.string "social_tag"
t.string "contact_email", :null => false
t.string "timezone", :null => false
t.string "contact_email", :null => false
t.string "timezone", :null => false
t.string "html_export_path"
t.date "start_date", :null => false
t.date "end_date", :null => false
t.date "start_date", :null => false
t.date "end_date", :null => false
t.integer "venue_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.date "registration_start_date"
t.date "registration_end_date"
t.string "logo_file_name"
t.string "logo_content_type"
t.integer "logo_file_size"
t.datetime "logo_updated_at"
t.boolean "use_dietary_choices", :default => false
t.boolean "use_supporter_levels", :default => false
end
create_table "dietary_choices", :force => true do |t|
t.integer "conference_id"
t.string "title", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "email_settings", :force => true do |t|
@ -164,6 +173,9 @@ ActiveRecord::Schema.define(:version => 20130131100257) do
t.text "additional_speakers"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "dietary_choice_id"
t.text "other_dietary_choice"
t.boolean "handicapped_access_required", :default => false
end
create_table "roles", :force => true do |t|
@ -185,6 +197,20 @@ ActiveRecord::Schema.define(:version => 20130131100257) do
t.boolean "public", :default => true
end
create_table "supporter_levels", :force => true do |t|
t.integer "conference_id"
t.string "title", :null => false
t.string "url"
end
create_table "supporter_registrations", :force => true do |t|
t.integer "registration_id"
t.integer "supporter_level_id"
t.string "email"
t.string "code"
t.boolean "code_is_valid", :default => false
end
create_table "tracks", :force => true do |t|
t.string "guid", :null => false
t.integer "conference_id"