diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200826153401_add_twofa_scheme_to_user.rb | 5 | ||||
-rw-r--r-- | db/migrate/20200826153402_add_totp_to_user.rb | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20200826153401_add_twofa_scheme_to_user.rb b/db/migrate/20200826153401_add_twofa_scheme_to_user.rb new file mode 100644 index 000000000..ea0b48fc8 --- /dev/null +++ b/db/migrate/20200826153401_add_twofa_scheme_to_user.rb @@ -0,0 +1,5 @@ +class AddTwofaSchemeToUser < ActiveRecord::Migration[5.2] + def change + add_column :users, :twofa_scheme, :string + end +end diff --git a/db/migrate/20200826153402_add_totp_to_user.rb b/db/migrate/20200826153402_add_totp_to_user.rb new file mode 100644 index 000000000..6842878e3 --- /dev/null +++ b/db/migrate/20200826153402_add_totp_to_user.rb @@ -0,0 +1,6 @@ +class AddTotpToUser < ActiveRecord::Migration[5.2] + def change + add_column :users, :twofa_totp_key, :string + add_column :users, :twofa_totp_last_used_at, :integer + end +end |