app/models/salmon.rb
# == Schema Information
#
# Table name: salmons
#
# id :bigint not null, primary key
# salmon_type :integer not null
# name :string not null
# image_url :string
# description :string
# created_at :datetime not null
# updated_at :datetime not null
#
class Salmon < ApplicationRecord
extend Enumerize
enumerize :salmon_type, in: {
normal: 1,
boss: 2,
special: 3
}, scope: true
end