mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add index on blob checksum
This commit is contained in:
1 parent
e1ea42a997
commit
4b75623b86
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexOnBlobsChecksum < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_index :active_storage_blobs, :checksum
|
||||
end
|
||||
end
|
||||
+2
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_28_074821) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_28_083356) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
@@ -75,6 +75,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_28_074821) do
|
||||
t.string "checksum"
|
||||
t.datetime "created_at", null: false
|
||||
t.string "uuid"
|
||||
t.index ["checksum"], name: "index_active_storage_blobs_on_checksum"
|
||||
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
||||
t.index ["uuid"], name: "index_active_storage_blobs_on_uuid", unique: true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user