Skip to content

Commit 7c4f877

Browse files
committed
Index profiles on ORCID
1 parent 4f1d11a commit 7c4f877

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddIndexOnOrcidToProfiles < ActiveRecord::Migration[7.2]
2+
def change
3+
add_index :profiles, :orcid
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_11_28_160923) do
13+
ActiveRecord::Schema[7.2].define(version: 2025_12_01_143501) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -453,6 +453,7 @@
453453
t.string "type", default: "Profile"
454454
t.string "fields", default: [], array: true
455455
t.boolean "orcid_authenticated", default: false
456+
t.index ["orcid"], name: "index_profiles_on_orcid"
456457
t.index ["slug"], name: "index_profiles_on_slug", unique: true
457458
end
458459

0 commit comments

Comments
 (0)