Removes duplicated relationship between budget and investment

This commit is contained in:
kikito
2016-09-09 12:17:05 +02:00
parent 3964988bb1
commit f456400218

View File

@@ -13,7 +13,6 @@ class Budget < ActiveRecord::Base
has_many :ballots, dependent: :destroy
has_many :groups, dependent: :destroy
has_many :headings, through: :groups
has_many :investments, through: :headings
scope :open, -> { where.not(phase: "finished") }
scope :finished, -> { where(phase: "finished") }