Add missing geozone relation

This commit is contained in:
voodoorai2000
2019-06-07 12:28:40 +02:00
parent f190edacbd
commit 18cef27b8d

View File

@@ -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