Browse Source

Rename password_hash to password_digest

Maarten van den Berg 8 years ago
parent
commit
c089408f33
2 changed files with 7 additions and 2 deletions
  1. 5 0
      db/migrate/20161208091531_fix_password_hash_name.rb
  2. 2 2
      db/schema.rb

+ 5 - 0
db/migrate/20161208091531_fix_password_hash_name.rb

1
+class FixPasswordHashName < ActiveRecord::Migration[5.0]
2
+  def change
3
+    rename_column :users, :password_hash, :password_digest
4
+  end
5
+end

+ 2 - 2
db/schema.rb

10
 #
10
 #
11
 # It's strongly recommended that you check this file into your version control system.
11
 # It's strongly recommended that you check this file into your version control system.
12
 
12
 
13
-ActiveRecord::Schema.define(version: 20161207204407) do
13
+ActiveRecord::Schema.define(version: 20161208091531) do
14
 
14
 
15
   create_table "activities", force: :cascade do |t|
15
   create_table "activities", force: :cascade do |t|
16
     t.string   "public_name"
16
     t.string   "public_name"
69
 
69
 
70
   create_table "users", force: :cascade do |t|
70
   create_table "users", force: :cascade do |t|
71
     t.string   "email"
71
     t.string   "email"
72
-    t.string   "password_hash"
72
+    t.string   "password_digest"
73
     t.string   "confirmation_token"
73
     t.string   "confirmation_token"
74
     t.string   "password_reset_token"
74
     t.string   "password_reset_token"
75
     t.integer  "person_id"
75
     t.integer  "person_id"