This commit is contained in:
stormand 2017-01-05 18:07:07 +08:00
parent a1b2802153
commit 68c7868e1d
1 changed files with 1 additions and 1 deletions

View File

@ -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