Files
nairobi/app/models/poll/booth_assignment.rb
2017-01-03 22:20:22 +01:00

12 lines
352 B
Ruby

class Poll
class BoothAssignment < ActiveRecord::Base
belongs_to :booth
belongs_to :poll
has_many :officer_assignments, class_name: "Poll::OfficerAssignment", dependent: :destroy
has_many :recounts, class_name: "Poll::Recount", dependent: :destroy
has_many :officers, through: :officer_assignments
has_many :voters
end
end