Ok - this time add the new controllers we stripped out of inline and add back the csp
This commit is contained in:
12
db/migrate/20251104064114_change_backup_codes_to_json.rb
Normal file
12
db/migrate/20251104064114_change_backup_codes_to_json.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class ChangeBackupCodesToJson < ActiveRecord::Migration[8.1]
|
||||
def up
|
||||
# Change the column type from text to json
|
||||
# This will automatically handle JSON serialization/deserialization
|
||||
change_column :users, :backup_codes, :json
|
||||
end
|
||||
|
||||
def down
|
||||
# Revert back to text if needed
|
||||
change_column :users, :backup_codes, :text
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user