Add HCA signin (#684)

This commit is contained in:
Max Wofford
2025-12-03 14:05:30 -05:00
committed by GitHub
parent 823d26f418
commit 336ae5c944
8 changed files with 133 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
class AddHCAFieldsToUsers < ActiveRecord::Migration[8.1]
def change
add_column :users, :hca_id, :string
add_column :users, :hca_scopes, :string, array: true, default: []
add_column :users, :hca_access_token, :string
end
end

5
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.1].define(version: 2025_12_01_161700) do
ActiveRecord::Schema[8.1].define(version: 2025_12_02_221230) do
create_schema "pganalyze"
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
@@ -550,6 +550,9 @@ ActiveRecord::Schema[8.1].define(version: 2025_12_01_161700) do
t.string "github_uid"
t.string "github_username"
t.integer "hackatime_extension_text_type", default: 0, null: false
t.string "hca_access_token"
t.string "hca_id"
t.string "hca_scopes", default: [], array: true
t.string "mailing_address_otc"
t.text "slack_access_token"
t.string "slack_avatar_url"