]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Remove nonsense has_one relationship
[rails.git] / app / models / user.rb
index 1cd8c6d89f439651d5b88f35b04ef2dda887a4a6..c063b7c34b6f4babce1bff7b4eda0efadf13e59f 100644 (file)
@@ -73,6 +73,11 @@ class User < ActiveRecord::Base
 
   has_many :roles, :class_name => "UserRole"
 
+  has_many :issues, :class_name => "Issue", :foreign_key => :reported_user_id
+  has_many :issue_comments
+
+  has_many :reports
+
   scope :visible, -> { where(:status => %w[pending active confirmed]) }
   scope :active, -> { where(:status => %w[active confirmed]) }
   scope :identifiable, -> { where(:data_public => true) }