13 lines
316 B
Ruby
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
|