diff options
Diffstat (limited to 'app/models/users/banned_user.rb')
-rw-r--r-- | app/models/users/banned_user.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/users/banned_user.rb b/app/models/users/banned_user.rb index 615668e2b55..8a62744c7d6 100644 --- a/app/models/users/banned_user.rb +++ b/app/models/users/banned_user.rb @@ -5,8 +5,12 @@ module Users self.primary_key = :user_id belongs_to :user + has_one :credit_card_validation, class_name: '::Users::CreditCardValidation', primary_key: 'user_id', + foreign_key: 'user_id', inverse_of: :banned_user validates :user, presence: true validates :user_id, uniqueness: { message: N_("banned user already exists") } end end + +Users::BannedUser.prepend_mod_with('Users::BannedUser') |