Class: AddTwoFactorAuthWithRoseQuartz
- Inherits:
-
Object
- Object
- AddTwoFactorAuthWithRoseQuartz
- Defined in:
- lib/generators/rose_quartz/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
11 12 13 |
# File 'lib/generators/rose_quartz/templates/migration.rb', line 11 def down drop_table :user_authenticators end |
#up ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/rose_quartz/templates/migration.rb', line 2 def up create_table :user_authenticators do |t| t.integer :user_id t.string :secret t.string :backup_code t.integer :last_authenticated_at end end |