Add association between polls and budgets
This commit is contained in:
@@ -23,6 +23,7 @@ class Poll < ActiveRecord::Base
|
||||
|
||||
has_and_belongs_to_many :geozones
|
||||
belongs_to :author, -> { with_hidden }, class_name: "User", foreign_key: "author_id"
|
||||
belongs_to :budget
|
||||
|
||||
validates_translation :name, presence: true
|
||||
validate :date_range
|
||||
|
||||
Reference in New Issue
Block a user