diff --git a/app/models/legislation/people_proposal.rb b/app/models/legislation/people_proposal.rb index 3b9c3d5b7..473f00b2e 100644 --- a/app/models/legislation/people_proposal.rb +++ b/app/models/legislation/people_proposal.rb @@ -21,6 +21,7 @@ class Legislation::PeopleProposal < ApplicationRecord belongs_to :process, class_name: "Legislation::Process", foreign_key: "legislation_process_id" belongs_to :author, -> { with_hidden }, class_name: "User", foreign_key: "author_id" + belongs_to :geozone has_many :comments, as: :commentable validates :title, presence: true