changes officer assignments to polls via new model/relation

This commit is contained in:
Juanjo Bazán
2016-12-06 14:33:06 +01:00
parent 60e7ac20e7
commit 891516a0b9
10 changed files with 72 additions and 138 deletions

View File

@@ -0,0 +1,8 @@
class Poll
class OfficerAssignment < ActiveRecord::Base
belongs_to :officer
belongs_to :booth_assignment
delegate :poll_id, :booth_id, to: :booth_assignment
end
end