Skip to content

Commit fdc3f09

Browse files
committed
Fixes missing validation for int and luck stats on Character
1 parent f5b3a86 commit fdc3f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/character.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Character < ActiveRecord::Base
88
validates :name, length: { in: 1..80 }
99
validates :name, uniqueness: { scope: :series_id }
1010

11-
validates :stat_hp, :stat_str, :stat_def,
11+
validates :stat_hp, :stat_str, :stat_def, :stat_int, :stat_luck,
1212
:stat_spd, numericality: { only_integer: true, greater_than_or_equal_to: 0 }
1313

1414
after_initialize :ensure_defaults

0 commit comments

Comments
 (0)