Allow GitHub account reuse when unlinked (#352)

This commit is contained in:
Max Wofford
2025-06-23 10:21:15 -04:00
committed by GitHub
parent 57ad1bd1c7
commit 86e70b64e6
3 changed files with 19 additions and 3 deletions

View 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
View File

@@ -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