diff options
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20260724110241_add_otp_to_users.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20260724110241_add_otp_to_users.rb b/db/migrate/20260724110241_add_otp_to_users.rb new file mode 100644 index 00000000..b43542bf --- /dev/null +++ b/db/migrate/20260724110241_add_otp_to_users.rb | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | class AddOtpToUsers < ActiveRecord::Migration[8.1] | ||
| 2 | def change | ||
| 3 | add_column :users, :otp_secret, :string | ||
| 4 | add_column :users, :otp_pending_secret, :string | ||
| 5 | add_column :users, :otp_consumed_timestep, :integer | ||
| 6 | add_column :users, :otp_required, :boolean, :null => false, :default => false | ||
| 7 | end | ||
| 8 | end | ||
