test/fixtures/article.rb in composite_primary_keys-3.1.8 vs test/fixtures/article.rb in composite_primary_keys-3.1.9
- old
+ new
@@ -1,5 +1,5 @@
class Article < ActiveRecord::Base
- has_many :readings
+ has_many :readings, :dependent => :delete_all
has_many :users, :through => :readings
end