Skip to content

Commit

Permalink
Merge pull request #2330 from 18F/stages/rc-2018-07-20
Browse files Browse the repository at this point in the history
Ignore the old password columns on the user model (#2329)
  • Loading branch information
jgsmith-usds authored Jul 17, 2018
2 parents 36c188e + c70d7c3 commit 0df0bc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 2 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# rubocop:disable Rails/HasManyOrHasOneDependent
class User < ApplicationRecord
self.ignored_columns = %w[encrypted_password password_salt password_cost]

include NonNullUuid

after_validation :set_default_role, if: :new_record?
Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180709141748) do
ActiveRecord::Schema.define(version: 20180620233914) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -213,6 +213,9 @@
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

0 comments on commit 0df0bc5

Please sign in to comment.