about summary refs log tree commit diff stats
path: root/app/models/location.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/location.rb')
-rw-r--r--app/models/location.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/location.rb b/app/models/location.rb new file mode 100644 index 0000000..57e193f --- /dev/null +++ b/app/models/location.rb
@@ -0,0 +1,5 @@
1class Location < ApplicationRecord
2 has_many :pokemon, dependent: :nullify
3
4 validates :name, presence: true
5end