class WineRegion < ApplicationRecord
  validates_presence_of :name
  belongs_to :country
  had_many :appellations
  belongs_to :state, optional: true
  # has_and_belongs_to_many :varietals
end

class WineRegion < ApplicationRecord
  validates_presence_of :name
  belongs_to :country
  has_many :appellations
  belongs_to :state, optional: true
  # has_and_belongs_to_many :varietals
end

Fix the typo in WIneRegion model
Fix the typo in WIneRegion model
