SHIMADA Koji
null+****@clear*****
Thu Sep 27 10:49:20 JST 2012
SHIMADA Koji 2012-09-27 10:49:20 +0900 (Thu, 27 Sep 2012) New Revision: c9d2874d7f9344514f2097e5fce762861fca126f https://github.com/logaling/logaling-server/commit/c9d2874d7f9344514f2097e5fce762861fca126f Log: Destroy related config and glossaries if destroy user Modified files: app/models/user.rb Modified: app/models/user.rb (+2 -2) =================================================================== --- app/models/user.rb 2012-09-27 10:43:28 +0900 (e411338) +++ app/models/user.rb 2012-09-27 10:49:20 +0900 (19c6ed6) @@ -11,10 +11,10 @@ class User < ActiveRecord::Base attr_accessible :name, :provider, :uid - has_many :user_glossaries + has_many :user_glossaries, :dependent => :destroy has_many :memberships, :dependent => :destroy has_many :github_projects, :through => :memberships, :uniq => true - has_one :user_config + has_one :user_config, :dependent => :destroy def priority_glossary user_config ? user_config.glossary : nil -------------- next part -------------- An HTML attachment was scrubbed... Download