1 2 3 4 5 6 7
class PokedexEntry < ApplicationRecord belongs_to :user belongs_to :run belongs_to :pokemon validates :recorded_at, presence: true end