Commit 07cba6cccea15c84fc1364ba58cb44361cd693c3
1 parent
2fc52fa3
Exists in
master
and in
29 other branches
[postgres-tests] Removing unnecessary dependent => destroy from category
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/category.rb
@@ -32,13 +32,13 @@ class Category < ActiveRecord::Base | @@ -32,13 +32,13 @@ class Category < ActiveRecord::Base | ||
32 | 32 | ||
33 | acts_as_filesystem | 33 | acts_as_filesystem |
34 | 34 | ||
35 | - has_many :article_categorizations, :dependent => :destroy | 35 | + has_many :article_categorizations |
36 | has_many :articles, :through => :article_categorizations | 36 | has_many :articles, :through => :article_categorizations |
37 | has_many :comments, :through => :articles | 37 | has_many :comments, :through => :articles |
38 | 38 | ||
39 | has_many :events, :through => :article_categorizations, :class_name => 'Event', :source => :article | 39 | has_many :events, :through => :article_categorizations, :class_name => 'Event', :source => :article |
40 | 40 | ||
41 | - has_many :profile_categorizations, :dependent => :destroy | 41 | + has_many :profile_categorizations |
42 | has_many :profiles, :through => :profile_categorizations, :source => :profile | 42 | has_many :profiles, :through => :profile_categorizations, :source => :profile |
43 | has_many :enterprises, :through => :profile_categorizations, :source => :profile, :class_name => 'Enterprise' | 43 | has_many :enterprises, :through => :profile_categorizations, :source => :profile, :class_name => 'Enterprise' |
44 | has_many :people, :through => :profile_categorizations, :source => :profile, :class_name => 'Person' | 44 | has_many :people, :through => :profile_categorizations, :source => :profile, :class_name => 'Person' |