Files
osem/app/models/vposition.rb
2014-05-21 16:20:02 +05:30

11 lines
220 B
Ruby

class Vposition < ActiveRecord::Base
attr_accessible :title, :description, :vday_ids
belongs_to :conference
has_many :vchoices
has_many :vdays, :through => :vchoices
validates_presence_of :title, :vdays
end