diff options
author | Logan Fick <logaldeveloper@protonmail.com> | 2018-06-07 20:27:13 -0400 |
---|---|---|
committer | Logan Fick <logaldeveloper@protonmail.com> | 2018-06-07 20:27:13 -0400 |
commit | a241749ee3eb8aaf2044fe49dc55cf1443d1e8cf (patch) | |
tree | d9e7190b65fbb86bd6a90a0448ffeb8fc6c5bbdb | |
parent | 201e59964e5689922b4d91b1483813ad53ae6509 (diff) |
Added TOTP toggle status to schema.
-rw-r--r-- | db/migrate/20180606223258_add_totp_to_users.rb | 3 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/db/migrate/20180606223258_add_totp_to_users.rb b/db/migrate/20180606223258_add_totp_to_users.rb index 9b97902..a85f67a 100644 --- a/db/migrate/20180606223258_add_totp_to_users.rb +++ b/db/migrate/20180606223258_add_totp_to_users.rb @@ -1,5 +1,6 @@ class AddTotpToUsers < ActiveRecord::Migration def change - add_column :users, :totp, :string + add_column :users, :totp_code, :string + add_column :users, :totp_enabled, :boolean, default: false end end diff --git a/db/schema.rb b/db/schema.rb index d5113e1..3fc4abb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -154,7 +154,8 @@ 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", limit: 191 + t.string "totp_code", limit: 255 + t.boolean "totp_enabled", default: false end add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree @@ -166,4 +167,3 @@ ActiveRecord::Schema.define(version: 20180606223258) do add_index "users", ["youtube"], name: "index_users_on_youtube", unique: true, using: :btree end - |