2
0

Update enum syntax to use the new Rails 7.0 style (#29217)

This commit is contained in:
Wolfgang Fournès
2024-02-16 15:54:23 +01:00
committed by GitHub
parent 1d9d14b8de
commit cfadb87077
15 changed files with 20 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
#
class LoginActivity < ApplicationRecord
enum authentication_method: { password: 'password', otp: 'otp', webauthn: 'webauthn', sign_in_token: 'sign_in_token', omniauth: 'omniauth' }
enum :authentication_method, { password: 'password', otp: 'otp', webauthn: 'webauthn', sign_in_token: 'sign_in_token', omniauth: 'omniauth' }
belongs_to :user