Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 494 Bytes
class Hole < ActiveRecord::Base
# Because when we're destroying a mole hole we're obviously using high explosives.
belongs_to :dirt, :dependent => :destroy
# muskrats are permanent
has_many :muskrats, :dependent => :destroy
# moles are not permanent
has_many :moles, :dependent => :destroy
has_one :location, :dependent => :destroy
has_one :unused_model, :dependent => :destroy
has_one :difficulty, :dependent => :destroy
has_many :comments, :dependent => :destroy
end
Something went wrong with that request. Please try again.