Make otp_backup_codes a text field

This commit is contained in:
Robert Speicher 2015-05-09 14:52:46 -04:00
parent 2ad1334d9e
commit 0c113c8dcb
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class AddDeviseTwoFactorBackupableToUsers < ActiveRecord::Migration
def change
add_column :users, :otp_backup_codes, :string, array: true
add_column :users, :otp_backup_codes, :text
end
end

View File

@ -492,6 +492,11 @@ ActiveRecord::Schema.define(version: 20150502064022) do
t.string "bitbucket_access_token"
t.string "bitbucket_access_token_secret"
t.string "location"
t.string "encrypted_otp_secret"
t.string "encrypted_otp_secret_iv"
t.string "encrypted_otp_secret_salt"
t.boolean "otp_required_for_login"
t.text "otp_backup_codes"
t.string "public_email", default: "", null: false
end