]> git.openstreetmap.org Git - rails.git/commitdiff
Remove nonsense has_one relationship
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Mar 2018 07:20:04 +0000 (15:20 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Mar 2018 07:20:04 +0000 (15:20 +0800)
app/models/user.rb

index 2d51b5af56915296825acb9ca33d1437cf1f5ceb..c063b7c34b6f4babce1bff7b4eda0efadf13e59f 100644 (file)
@@ -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