2014-01-01 11:39:59 +02:00
|
|
|
class Vposition < ActiveRecord::Base
|
2014-05-19 12:24:48 +05:30
|
|
|
attr_accessible :title, :description, :vday_ids
|
2014-01-01 11:39:59 +02:00
|
|
|
|
|
|
|
|
belongs_to :conference
|
|
|
|
|
|
|
|
|
|
has_many :vchoices
|
2014-07-21 14:49:05 +02:00
|
|
|
has_many :vdays, through: :vchoices
|
2014-01-01 11:39:59 +02:00
|
|
|
|
|
|
|
|
validates_presence_of :title, :vdays
|
|
|
|
|
end
|