Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/webauthn_registration.rb')
-rw-r--r--app/models/webauthn_registration.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/webauthn_registration.rb b/app/models/webauthn_registration.rb
index 71b50192e29..c8b2513e702 100644
--- a/app/models/webauthn_registration.rb
+++ b/app/models/webauthn_registration.rb
@@ -3,10 +3,14 @@
# Registration information for WebAuthn credentials
class WebauthnRegistration < ApplicationRecord
+ include IgnorableColumns
+
+ ignore_column :u2f_registration_id, remove_with: '16.2', remove_after: '2023-06-22'
+
belongs_to :user
validates :credential_xid, :public_key, :counter, presence: true
validates :name, length: { minimum: 0, allow_nil: false }
validates :counter,
- numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 2**32 - 1 }
+ numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 2**32 - 1 }
end