removes poll-booth direct association
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class Poll < ActiveRecord::Base
|
||||
has_many :booths
|
||||
has_many :voters, through: :booths, class_name: "Poll::Voter"
|
||||
has_many :officers, through: :booths, class_name: "Poll::Officer"
|
||||
has_many :questions
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Poll
|
||||
class Booth < ActiveRecord::Base
|
||||
belongs_to :poll
|
||||
has_many :voters
|
||||
has_many :officing_booths, dependent: :destroy
|
||||
has_many :officers, through: :officing_booths
|
||||
|
||||
Reference in New Issue
Block a user