add uuid to active storage blob

This commit is contained in:
Pete Matsyburka
2024-02-18 10:24:43 +02:00
parent 652072d660
commit 5a3174a720
3 changed files with 22 additions and 1 deletions
@@ -0,0 +1,9 @@
# frozen_string_literal: true
class AddUuidToActiveStorageBlobs < ActiveRecord::Migration[7.1]
def change
add_column :active_storage_blobs, :uuid, :string
add_index :active_storage_blobs, :uuid, unique: true
end
end