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

10
app/models/vposition.rb Normal file
View file

@ -0,0 +1,10 @@
class Vposition < ActiveRecord::Base
attr_accessible :title, :description, :date, :vday_ids
belongs_to :conference
has_many :vchoices
has_many :vdays, :through => :vchoices
validates_presence_of :title, :vdays
end