do not destroy uploads when destroying a user

This commit is contained in:
Régis Hanol
2013-11-22 18:29:07 +01:00
parent 4e45c5ff3d
commit 3cf5a363f7
2 changed files with 35 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ class User < ActiveRecord::Base
has_many :user_visits, dependent: :destroy
has_many :invites, dependent: :destroy
has_many :topic_links, dependent: :destroy
has_many :uploads, dependent: :destroy
has_many :uploads
has_one :facebook_user_info, dependent: :destroy
has_one :twitter_user_info, dependent: :destroy