Module: DeviseMultiFactor::Schema

Included in:
Orm::ActiveRecord::Schema
Defined in:
lib/devise_multi_factor/schema.rb

Instance Method Summary collapse

Instance Method Details

#direct_otpObject



11
12
13
# File 'lib/devise_multi_factor/schema.rb', line 11

def direct_otp
  apply_devise_schema :direct_otp, String
end

#direct_otp_sent_atObject



15
16
17
# File 'lib/devise_multi_factor/schema.rb', line 15

def direct_otp_sent_at
  apply_devise_schema :direct_otp_sent_at, DateTime
end

#encrypted_otp_secret_keyObject



7
8
9
# File 'lib/devise_multi_factor/schema.rb', line 7

def encrypted_otp_secret_key
  apply_devise_schema :encrypted_otp_secret_key, String
end

#second_factor_attempts_countObject



3
4
5
# File 'lib/devise_multi_factor/schema.rb', line 3

def second_factor_attempts_count
  apply_devise_schema :second_factor_attempts_count, Integer, :default => 0
end

#totp_timestampObject



19
20
21
# File 'lib/devise_multi_factor/schema.rb', line 19

def totp_timestamp
  apply_devise_schema :totp_timestamp, Integer
end