このコミットが含まれているのは:
@@ -13,7 +13,10 @@ class GekanatorQuestion < ApplicationRecord
|
||||
validates :condition, presence: true
|
||||
validates :priority_weight,
|
||||
presence: true,
|
||||
numericality: { greater_than: 0 }
|
||||
numericality: {
|
||||
greater_than: 0,
|
||||
less_than_or_equal_to: 3
|
||||
}
|
||||
|
||||
scope :accepted, -> { where(status: 'accepted') }
|
||||
end
|
||||
|
||||
新しい課題から参照
ユーザをブロックする