Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down