Files
nairobi/app/models/budget/reclassified_vote.rb
Javi Martín 8b5cca746c Apply rubocop rules to freeze constants
Added by popular demand among our team members.
2019-10-26 13:21:36 +02:00

13 lines
316 B
Ruby

class Budget
class ReclassifiedVote < ApplicationRecord
REASONS = %w[heading_changed unfeasible].freeze
belongs_to :user
belongs_to :investment
validates :user, presence: true
validates :investment, presence: true
validates :reason, inclusion: { in: REASONS, allow_nil: false }
end
end