Add historic fields to participatory budget
This commit is contained in:
@@ -35,6 +35,12 @@ class Budget < ApplicationRecord
|
||||
has_many :headings, through: :groups
|
||||
has_many :lines, through: :ballots, class_name: "Budget::Ballot::Line"
|
||||
has_many :phases, class_name: "Budget::Phase"
|
||||
has_many :budget_trackers
|
||||
has_many :trackers, through: :budget_trackers
|
||||
has_many :budget_administrators
|
||||
has_many :administrators, through: :budget_administrators
|
||||
has_many :budget_valuators
|
||||
has_many :valuators, through: :budget_valuators
|
||||
|
||||
has_one :poll
|
||||
|
||||
@@ -224,4 +230,5 @@ class Budget < ApplicationRecord
|
||||
def generate_slug?
|
||||
slug.nil? || drafting?
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user