class SoundTrek < ApplicationRecord
  validates :location_id, :title, presence: true
  belongs_to :trekker, class_name: "User"
  belongs_to :location
end

class SoundTrek < ApplicationRecord
  validates :location_id, :title, presence: true
  belongs_to :trekker, class_name: "User"
  belongs_to :location, dependent: :destroy
end

Add dependent destroy to locations for soundtreks so that pins do not show up on the map when a user deletes soundtrek
Add dependent destroy to locations for soundtreks so that pins do not show up on the map when a user deletes soundtrek
