mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Volunteers, positions and days and volunteers list for admin, volunteering option for attendees
This commit is contained in:
parent
125d5fe3ff
commit
64b2b8b3f8
31 changed files with 335 additions and 79 deletions
|
|
@ -0,0 +1,5 @@
|
|||
class AddVolunteerToRegistrations < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrations, :volunteer, :boolean
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddVolunteerExperienceToRegistrations < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :people, :volunteer_experience, :text
|
||||
end
|
||||
end
|
||||
5
db/migrate/20130821102047_add_tshirt_to_people.rb
Normal file
5
db/migrate/20130821102047_add_tshirt_to_people.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddTshirtToPeople < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :people, :tshirt, :string
|
||||
end
|
||||
end
|
||||
5
db/migrate/20130821102108_add_mobile_to_people.rb
Normal file
5
db/migrate/20130821102108_add_mobile_to_people.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddMobileToPeople < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :people, :mobile, :string
|
||||
end
|
||||
end
|
||||
5
db/migrate/20130821102404_add_languages_to_people.rb
Normal file
5
db/migrate/20130821102404_add_languages_to_people.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddLanguagesToPeople < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :people, :languages, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddUseVpositionsToConferences < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :use_vpositions, :boolean
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddUseVdaysToConferences < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :conferences, :use_vdays, :boolean
|
||||
end
|
||||
end
|
||||
15
db/migrate/20130821133651_create_vpositions.rb
Normal file
15
db/migrate/20130821133651_create_vpositions.rb
Normal 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
|
||||
15
db/migrate/20130821133850_create_vdays.rb
Normal file
15
db/migrate/20130821133850_create_vdays.rb
Normal 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
|
||||
8
db/migrate/20131228214532_create_vchoices.rb
Normal file
8
db/migrate/20131228214532_create_vchoices.rb
Normal 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
|
||||
11
db/migrate/20131229072532_registrations_vchoices.rb
Normal file
11
db/migrate/20131229072532_registrations_vchoices.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue