diff --git a/app/models/place.rb b/app/models/place.rb index f02d952..82cf4ab 100644 --- a/app/models/place.rb +++ b/app/models/place.rb @@ -9,6 +9,8 @@ class Place < ApplicationRecord ranks :row_order, scope: :active + has_many :courses + validates :name, presence: true friendly_id :name, use: :slugged