projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1bb412
)
Remove nonsense has_one relationship
author
Andy Allan
<git@gravitystorm.co.uk>
Wed, 14 Mar 2018 07:20:04 +0000
(15:20 +0800)
committer
Andy Allan
<git@gravitystorm.co.uk>
Wed, 14 Mar 2018 07:20:04 +0000
(15:20 +0800)
app/models/user.rb
patch
|
blob
|
history
diff --git
a/app/models/user.rb
b/app/models/user.rb
index 2d51b5af56915296825acb9ca33d1437cf1f5ceb..c063b7c34b6f4babce1bff7b4eda0efadf13e59f 100644
(file)
--- a/
app/models/user.rb
+++ b/
app/models/user.rb
@@
-74,7
+74,6
@@
class User < ActiveRecord::Base
has_many :roles, :class_name => "UserRole"
has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id
- has_one :issue, :class_name => "Issue", :foreign_key => :updated_by
has_many :issue_comments
has_many :reports