mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
deprecate username + name cleanup
This commit is contained in:
5
db/migrate/20251021202329_deprecate_username.rb
Normal file
5
db/migrate/20251021202329_deprecate_username.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class DeprecateUsername < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
rename_column :users, :username, :deprecated_name
|
||||
end
|
||||
end
|
||||
4
db/schema.rb
generated
4
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_10_18_181955) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_10_21_202329) do
|
||||
create_schema "pganalyze"
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
@@ -543,7 +543,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_10_18_181955) do
|
||||
t.string "slack_uid"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "username"
|
||||
t.string "deprecated_name"
|
||||
t.string "slack_avatar_url"
|
||||
t.boolean "uses_slack_status", default: false, null: false
|
||||
t.string "slack_scopes", default: [], array: true
|
||||
|
||||
@@ -39,7 +39,7 @@ if Rails.env.development?
|
||||
end
|
||||
|
||||
puts "Created test user:"
|
||||
puts " Username: #{test_user.name}"
|
||||
puts " Username: #{test_user.display_name}"
|
||||
puts " Email: #{email.email}"
|
||||
puts " API Key: #{api_key.token}"
|
||||
puts " Sign-in Token: #{token.token}"
|
||||
|
||||
Reference in New Issue
Block a user