Browse Source

delete dependent records

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
8f54fbad16
  1. 2
      app/models/domain.rb

2
app/models/domain.rb

@ -1,4 +1,4 @@
class Domain < ActiveRecord::Base class Domain < ActiveRecord::Base
set_inheritance_column { 'sti_type' } set_inheritance_column { 'sti_type' }
has_many :records has_many :records, :dependent => :destroy # :delete_all ?
end end

Loading…
Cancel
Save