X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e72acaca9b988d41298415d51a10533d3a27e958..12228510c3d543493d8907731281871c8785c40e:/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