From ce8cb6f4ae275c2687be8c0224789e108483fc52 Mon Sep 17 00:00:00 2001 From: Logan Fick Date: Thu, 7 Jun 2018 20:43:51 -0400 Subject: Renamed TOTP secret column in schema. --- db/migrate/20180606223258_add_totp_to_users.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20180606223258_add_totp_to_users.rb b/db/migrate/20180606223258_add_totp_to_users.rb index a85f67a..7113c0f 100644 --- a/db/migrate/20180606223258_add_totp_to_users.rb +++ b/db/migrate/20180606223258_add_totp_to_users.rb @@ -1,6 +1,6 @@ class AddTotpToUsers < ActiveRecord::Migration def change - add_column :users, :totp_code, :string + add_column :users, :totp_secret, :string add_column :users, :totp_enabled, :boolean, default: false end end diff --git a/db/schema.rb b/db/schema.rb index 3fc4abb..afd5218 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -154,7 +154,7 @@ ActiveRecord::Schema.define(version: 20180606223258) do t.boolean "header_scroll", default: false t.boolean "dark", default: false t.text "public_key", limit: 65535 - t.string "totp_code", limit: 255 + t.string "totp_string", limit: 255 t.boolean "totp_enabled", default: false end -- cgit v1.2.3