このコミットが含まれているのは:
2026-06-09 23:36:24 +09:00
コミット 159ad5ed5a
2個のファイルの変更172行の追加8行の削除
+4 -1
ファイルの表示
@@ -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