diff options
author | David Gay <david@davidgay.org> | 2021-04-06 21:04:37 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-06 21:04:37 -0400 |
commit | b85c671ca482e9d36bd2ee94231f365e7e0d65a5 (patch) | |
tree | 19a1b3835df7e29dcec2c21aff494d0a60a751ce /app/models/ptu_pokemon.rb | |
parent | 84db8024dfe821efefadf77f91922f0944833a40 (diff) |
Basic Pokemon setup for PTU
Diffstat (limited to 'app/models/ptu_pokemon.rb')
-rw-r--r-- | app/models/ptu_pokemon.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ptu_pokemon.rb b/app/models/ptu_pokemon.rb new file mode 100644 index 0000000..1c57500 --- /dev/null +++ b/app/models/ptu_pokemon.rb @@ -0,0 +1,4 @@ +class PtuPokemon < ApplicationRecord + validates :name, :base_hp, :base_atk, :base_def, :base_spatk, :base_spdef, :base_speed, presence: true + validates :male_chance, inclusion: 0..100, allow_nil: true +end |