Volunteers, positions and days and volunteers list for admin, volunteering option for attendees

This commit is contained in:
Stella 2014-01-01 11:39:59 +02:00
parent 125d5fe3ff
commit 64b2b8b3f8
31 changed files with 335 additions and 79 deletions

View file

@ -0,0 +1,5 @@
class AddVolunteerToRegistrations < ActiveRecord::Migration
def change
add_column :registrations, :volunteer, :boolean
end
end

View file

@ -0,0 +1,5 @@
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration
def change
add_column :people, :volunteer_experience, :text
end
end

View file

@ -0,0 +1,5 @@
class AddTshirtToPeople < ActiveRecord::Migration
def change
add_column :people, :tshirt, :string
end
end

View file

@ -0,0 +1,5 @@
class AddMobileToPeople < ActiveRecord::Migration
def change
add_column :people, :mobile, :string
end
end

View file

@ -0,0 +1,5 @@
class AddLanguagesToPeople < ActiveRecord::Migration
def change
add_column :people, :languages, :string
end
end

View file

@ -0,0 +1,5 @@
class AddUseVpositionsToConferences < ActiveRecord::Migration
def change
add_column :conferences, :use_vpositions, :boolean
end
end

View file

@ -0,0 +1,5 @@
class AddUseVdaysToConferences < ActiveRecord::Migration
def change
add_column :conferences, :use_vdays, :boolean
end
end

View file

@ -0,0 +1,15 @@
class CreateVpositions < ActiveRecord::Migration
def up
create_table :vpositions do |t|
t.references :conference
t.string :title, :null => false
t.text :description
t.timestamps
end
end
def down
drop_table :vpositions
end
end

View file

@ -0,0 +1,15 @@
class CreateVdays < ActiveRecord::Migration
def up
create_table :vdays do |t|
t.references :conference
t.date :day
t.text :description
t.timestamps
end
end
def down
drop_table :vdays
end
end

View file

@ -0,0 +1,8 @@
class CreateVchoices < ActiveRecord::Migration
def change
create_table :vchoices do |t|
t.references :vday
t.references :vposition
end
end
end

View file

@ -0,0 +1,11 @@
class RegistrationsVchoices < ActiveRecord::Migration
def up
create_table :registrations_vchoices, :id => false do |t|
t.references :registration, :vchoice
end
end
def down
drop_table :registrations_vchoices
end
end