diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-06-09 10:23:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 10:23:06 +0200 |
commit | 72a7cfaa395bbddabd0f0a712165fd7babf5d58c (patch) | |
tree | b983e24cda49dfaae2a08ef7193af1424e6b8f9b /db/migrate | |
parent | 8b6d97fb7cc80321834f95bdee56e31676e1cff6 (diff) |
Add e-mail-based sign in challenge for users with disabled 2FA (#14013)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200608113046_add_sign_in_token_to_users.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20200608113046_add_sign_in_token_to_users.rb b/db/migrate/20200608113046_add_sign_in_token_to_users.rb new file mode 100644 index 000000000..baa63c10f --- /dev/null +++ b/db/migrate/20200608113046_add_sign_in_token_to_users.rb @@ -0,0 +1,6 @@ +class AddSignInTokenToUsers < ActiveRecord::Migration[5.2] + def change + add_column :users, :sign_in_token, :string + add_column :users, :sign_in_token_sent_at, :datetime + end +end |