Files
grecia/app/models/poll/booth.rb
2016-11-14 13:58:00 +01:00

10 lines
235 B
Ruby

class Poll
class Booth < ActiveRecord::Base
belongs_to :poll
has_many :voters
has_many :officing_booths, dependent: :destroy
has_many :officers, through: :officing_booths
validates :name, presence: true
end
end