tinyforms/db/migrate/20200412214304_add_token_to_attachments.rb
2020-04-28 01:40:06 +02:00

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