Skip to content

Commit 940c9d7

Browse files
author
Nicholas Watson
committed
removed dependent destroy from membership relationship
1 parent 16779cd commit 940c9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class User < ActiveRecord::Base
1616
has_one :avatar, :class_name => "Photo", :as => :photoable
1717

1818
has_one :profile, :dependent => :destroy, :class_name => "EntropiSocial::Profile"
19-
has_many :memberships, :dependent => :destroy
19+
has_many :memberships
2020
has_many :groups, :as => :groupable
2121

2222
accepts_nested_attributes_for :profile

0 commit comments

Comments
 (0)