From 07cba6cccea15c84fc1364ba58cb44361cd693c3 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 29 Jul 2013 22:03:57 -0300 Subject: [PATCH] [postgres-tests] Removing unnecessary dependent => destroy from category --- app/models/category.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/category.rb b/app/models/category.rb index 04f8d98..c379297 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -32,13 +32,13 @@ class Category < ActiveRecord::Base acts_as_filesystem - has_many :article_categorizations, :dependent => :destroy + has_many :article_categorizations has_many :articles, :through => :article_categorizations has_many :comments, :through => :articles has_many :events, :through => :article_categorizations, :class_name => 'Event', :source => :article - has_many :profile_categorizations, :dependent => :destroy + has_many :profile_categorizations has_many :profiles, :through => :profile_categorizations, :source => :profile has_many :enterprises, :through => :profile_categorizations, :source => :profile, :class_name => 'Enterprise' has_many :people, :through => :profile_categorizations, :source => :profile, :class_name => 'Person' -- libgit2 0.21.2