This commit is contained in:
parent
a1b2802153
commit
68c7868e1d
|
@ -2,5 +2,5 @@ class Grade < ActiveRecord::Base
|
|||
belongs_to :course
|
||||
belongs_to :user
|
||||
|
||||
validates :grade, numericality: { only_integer: true, :greater_than => 0, :less_than => 100}
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue