From: Andy Allan Date: Wed, 14 Mar 2018 07:20:04 +0000 (+0800) Subject: Remove nonsense has_one relationship X-Git-Tag: live~2937^2~27 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5e7abf67fbda21735d12660a537a96e39bb87107?ds=sidebyside Remove nonsense has_one relationship --- diff --git a/app/models/user.rb b/app/models/user.rb index 2d51b5af5..c063b7c34 100644 --- 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