9 lines
237 B
Ruby
9 lines
237 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddTokenToAttachments < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_column :active_storage_attachments, :token, :string
|
|
add_index :active_storage_attachments, :token, unique: true
|
|
end
|
|
end
|