X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/73c95847a6680bea7f35fe5b3da6eb4e52757b9c..582402ba8fe5cb3f7a9934844cf33678a3365f45:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 9150bae79..47ff9ff08 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -28,9 +28,9 @@ class UserBlock < ApplicationRecord validate :moderator_permissions validates :reason, :characters => true - belongs_to :user, :class_name => "User", :foreign_key => :user_id - belongs_to :creator, :class_name => "User", :foreign_key => :creator_id - belongs_to :revoker, :class_name => "User", :foreign_key => :revoker_id + belongs_to :user, :class_name => "User" + belongs_to :creator, :class_name => "User" + belongs_to :revoker, :class_name => "User" PERIODS = Settings.user_block_periods