From 017a67ac86d3329e24f2d5971415ff5f01239747 Mon Sep 17 00:00:00 2001 From: Bryceson Laing Date: Mon, 28 Jul 2025 10:41:35 -0500 Subject: [PATCH 1/2] fix migration name --- .../20250603132805_add_orcid_tokens_to_users.rb | 2 +- db/schema.rb | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/db/migrate/20250603132805_add_orcid_tokens_to_users.rb b/db/migrate/20250603132805_add_orcid_tokens_to_users.rb index 9fdc6570..622a8f09 100644 --- a/db/migrate/20250603132805_add_orcid_tokens_to_users.rb +++ b/db/migrate/20250603132805_add_orcid_tokens_to_users.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class AddOrcidSearchAndLinkTokensToUsers < ActiveRecord::Migration[7.1] +class AddOrcidTokensToUsers < ActiveRecord::Migration[7.1] def up execute "ALTER TABLE users ROW_FORMAT=DYNAMIC" end diff --git a/db/schema.rb b/db/schema.rb index 97e44312..411122c8 100755 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -12,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2025_06_10_031120) do +ActiveRecord::Schema[7.1].define(version: 2025_06_03_132805) do create_table "claims", id: :integer, charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| t.string "uuid", limit: 191 t.string "doi", limit: 191 @@ -110,12 +108,12 @@ t.string "organization", limit: 191 t.string "orcid_auto_update_access_token", limit: 191 t.datetime "orcid_auto_update_expires_at", precision: nil, default: "1970-01-01 00:00:00" - t.text "orcid_search_and_link_access_token" - t.text "orcid_search_and_link_refresh_token" - t.datetime "orcid_search_and_link_expires_at" - t.text "orcid_token" + t.string "orcid_auto_update_refresh_token" + t.string "orcid_token" t.datetime "orcid_expires_at" - t.text "orcid_auto_update_refresh_token" + t.string "orcid_search_and_link_access_token" + t.string "orcid_search_and_link_refresh_token" + t.datetime "orcid_search_and_link_expires_at" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["family_name", "given_names"], name: "index_users_on_family_name_and_given_names" t.index ["github"], name: "index_users_on_github", unique: true @@ -123,4 +121,5 @@ t.index ["is_public"], name: "index_users_on_is_public" t.index ["uid"], name: "index_users_on_uid", unique: true end + end From 034ae2474abbd808fed20292e457f2e23a56cc0d Mon Sep 17 00:00:00 2001 From: Bryceson Laing Date: Mon, 28 Jul 2025 10:47:30 -0500 Subject: [PATCH 2/2] appease rubocop --- db/schema.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index 411122c8..09294346 100755 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -121,5 +123,4 @@ t.index ["is_public"], name: "index_users_on_is_public" t.index ["uid"], name: "index_users_on_uid", unique: true end - end