# 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