From 6c69ca27634819c066ec021eb343cd6687d7c4fc Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Mon, 24 Sep 2018 14:28:56 -0400 Subject: [PATCH] Revert "Hi! Before submitting your PR for review, and/or before merging it, please go through the checklists below. These represent the more critical elements of our code quality guidelines. The rest of the list can be found in [CONTRIBUTING.md] (#2550)" This reverts commit 31031839b61c79b9d99c7f6f651294308299af71. --- ...48_drop_encrypted_password_column_from_user.rb | 15 +++++++++++++++ db/schema.rb | 3 --- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20180709141748_drop_encrypted_password_column_from_user.rb diff --git a/db/migrate/20180709141748_drop_encrypted_password_column_from_user.rb b/db/migrate/20180709141748_drop_encrypted_password_column_from_user.rb new file mode 100644 index 00000000000..d6fce556d29 --- /dev/null +++ b/db/migrate/20180709141748_drop_encrypted_password_column_from_user.rb @@ -0,0 +1,15 @@ +class DropEncryptedPasswordColumnFromUser < ActiveRecord::Migration[5.1] + def up + safety_assured do + remove_column :users, :encrypted_password + remove_column :users, :password_salt + remove_column :users, :password_cost + end + end + + def down + add_column :users, :encrypted_password, :string, limit: 255, default: '' + add_column :users, :password_salt, :string + add_column :users, :password_cost, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index e9a0594cee3..86a603738fa 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -246,9 +246,6 @@ t.string "x509_dn_uuid" t.string "encrypted_password_digest", default: "" t.string "encrypted_recovery_code_digest", default: "" - t.string "encrypted_password", limit: 255, default: "" - t.string "password_salt" - t.string "password_cost" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["email_fingerprint"], name: "index_users_on_email_fingerprint", unique: true t.index ["encrypted_otp_secret_key"], name: "index_users_on_encrypted_otp_secret_key", unique: true