diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 15:11:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 15:11:56 +0300 |
commit | a53033814ddff597cd05244f378915bacdcb5aea (patch) | |
tree | c72cddf8268e72cd46e3a1b0f04298aa6a04533b /app/models/users | |
parent | f60abc43151ae4589e96824c3c8674e76cb0cb9c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/users')
-rw-r--r-- | app/models/users/credit_card_validation.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/users/credit_card_validation.rb b/app/models/users/credit_card_validation.rb index 998a5deb0fd..6f1cadb4344 100644 --- a/app/models/users/credit_card_validation.rb +++ b/app/models/users/credit_card_validation.rb @@ -21,5 +21,9 @@ module Users network: network ).order(credit_card_validated_at: :desc).includes(:user) end + + def similar_holder_names_count + self.class.where('lower(holder_name) = :value', value: holder_name.downcase).count + end end end |