summaryrefslogtreecommitdiffstats
path: root/db/migrate/20200826153402_add_totp_to_user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200826153402_add_totp_to_user.rb')
-rw-r--r--db/migrate/20200826153402_add_totp_to_user.rb6
1 files changed, 6 insertions, 0 deletions
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