summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-10-15 18:11:47 -0600
committermo khan <mo@mokhan.ca>2014-10-15 18:11:47 -0600
commit4b766236668468bd8e029538667053cc243e8d7f (patch)
tree101bf58284e42cac1a4eeb592892840de47a6391 /db
parentca76381494281930f9ae5dd76a211ff90a479e2d (diff)
rename encrypted_password to password_digest.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20141016000307_rename_password_column.rb6
-rw-r--r--db/schema.rb5
2 files changed, 8 insertions, 3 deletions
diff --git a/db/migrate/20141016000307_rename_password_column.rb b/db/migrate/20141016000307_rename_password_column.rb
new file mode 100644
index 00000000..8e1427f9
--- /dev/null
+++ b/db/migrate/20141016000307_rename_password_column.rb
@@ -0,0 +1,6 @@
+class RenamePasswordColumn < ActiveRecord::Migration
+ def change
+ rename_column :users, :encrypted_password, :password_digest
+ remove_column :users, :password_salt, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d3c5a036..643e4fef 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20141001025113) do
+ActiveRecord::Schema.define(version: 20141016000307) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -191,7 +191,7 @@ ActiveRecord::Schema.define(version: 20141001025113) do
create_table "users", force: true do |t|
t.string "email", default: "", null: false
- t.string "encrypted_password", default: "", null: false
+ t.string "password_digest", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "created_at"
@@ -201,7 +201,6 @@ ActiveRecord::Schema.define(version: 20141001025113) do
t.string "twitter"
t.string "facebook"
t.string "city"
- t.string "password_salt"
t.string "authentication_token"
t.string "full_address"
t.integer "creations_count", default: 0