summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20180606223258_add_totp_to_users.rb2
-rw-r--r--db/schema.rb2
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