spec/spec_helper.rb in soft_deletion-0.4.1 vs spec/spec_helper.rb in soft_deletion-0.4.2
- old
+ new
@@ -107,10 +107,10 @@
class NDACategory < ActiveRecord::Base
silent_set_table_name 'categories'
has_soft_deletion
- has_many :forums, :dependent => :destroy, :foreign_key => :category_id
+ has_many :forums, :dependent => :nullify, :foreign_key => :category_id
end
# Has ome association
class HOACategory < ActiveRecord::Base
silent_set_table_name 'categories'