mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Allow GitHub account reuse when unlinked (#352)
This commit is contained in:
6
db/migrate/20250623135342_add_github_index_to_users.rb
Normal file
6
db/migrate/20250623135342_add_github_index_to_users.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddGithubIndexToUsers < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_index :users, [ :github_uid, :github_access_token ],
|
||||
name: "index_users_on_github_uid_and_access_token"
|
||||
end
|
||||
end
|
||||
3
db/schema.rb
generated
3
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_06_18_170000) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_06_23_135342) do
|
||||
create_schema "pganalyze"
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
@@ -494,6 +494,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_18_170000) do
|
||||
t.string "mailing_address_otc"
|
||||
t.boolean "allow_public_stats_lookup", default: true, null: false
|
||||
t.boolean "default_timezone_leaderboard", default: true, null: false
|
||||
t.index ["github_uid", "github_access_token"], name: "index_users_on_github_uid_and_access_token"
|
||||
t.index ["slack_uid"], name: "index_users_on_slack_uid", unique: true
|
||||
t.index ["timezone"], name: "index_users_on_timezone"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user