From 18cef27b8de9bf2a5dc16582ab32e9b7ab97aa98 Mon Sep 17 00:00:00 2001 From: voodoorai2000 Date: Fri, 7 Jun 2019 12:28:40 +0200 Subject: [PATCH] Add missing geozone relation --- app/models/legislation/people_proposal.rb | 1 + 1 file changed, 1 insertion(+) 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