creates new fields and assignments for spending_ps
This commit is contained in:
@@ -2,5 +2,8 @@ class Valuator < ActiveRecord::Base
|
||||
belongs_to :user, touch: true
|
||||
delegate :name, :email, to: :user
|
||||
|
||||
has_many :valuation_assignments, dependent: :destroy
|
||||
has_many :spending_proposals, through: :valuation_assignments
|
||||
|
||||
validates :user_id, presence: true, uniqueness: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user