diff options
author | Logan Fick <logaldeveloper@protonmail.com> | 2018-06-07 20:43:51 -0400 |
---|---|---|
committer | Logan Fick <logaldeveloper@protonmail.com> | 2018-06-07 20:43:51 -0400 |
commit | ce8cb6f4ae275c2687be8c0224789e108483fc52 (patch) | |
tree | 55c443fb36c7ff2e0875badd3079f4f22e77d19f | |
parent | 1d1b66f4a0ae069965fd1541418f2a9bda654659 (diff) |
Renamed TOTP secret column in schema.
-rw-r--r-- | db/migrate/20180606223258_add_totp_to_users.rb | 2 | ||||
-rw-r--r-- | 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 |