Skip to content

Commit 621427a

Browse files
committed
Rename password_digest to old_password_digest
1 parent e23affd commit 621427a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/api/app/models/unregistered_user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def self.register(opts)
7777
# last_logged_in_at :datetime
7878
# login :text(65535) uniquely indexed
7979
# login_failure_count :integer default(0), not null
80-
# password_digest :string(255)
80+
# old_password_digest :string(255)
8181
# realname :string(200) default(""), not null
8282
# rss_secret :string(200) uniquely indexed
8383
# state :string default("unconfirmed"), indexed

src/api/app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ def lookup_strategy
880880
# last_logged_in_at :datetime
881881
# login :text(65535) uniquely indexed
882882
# login_failure_count :integer default(0), not null
883-
# password_digest :string(255)
883+
# old_password_digest :string(255)
884884
# realname :string(200) default(""), not null
885885
# rss_secret :string(200) uniquely indexed
886886
# state :string default("unconfirmed"), indexed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RenamePasswordDigestToOldPasswordDigestInUsers < ActiveRecord::Migration[7.2]
2+
def change
3+
safety_assured { rename_column :users, :password_digest, :old_password_digest }
4+
end
5+
end

src/api/db/schema.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_09_15_120837) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_09_25_123600) do
1414
create_table "active_storage_attachments", id: :integer, charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
1515
t.string "name", null: false
1616
t.string "record_type", null: false
@@ -1196,7 +1196,7 @@
11961196
t.text "login", collation: "utf8mb4_bin"
11971197
t.string "email", limit: 200, default: "", null: false
11981198
t.string "realname", limit: 200, default: "", null: false
1199-
t.string "password_digest", collation: "utf8mb4_bin"
1199+
t.string "old_password_digest", collation: "utf8mb4_bin"
12001200
t.string "deprecated_password", collation: "utf8mb4_bin"
12011201
t.string "deprecated_password_hash_type", collation: "utf8mb4_bin"
12021202
t.string "deprecated_password_salt", collation: "utf8mb4_bin"

0 commit comments

Comments
 (0)