Gab-Social/db/migrate/20200707212951_add_index_to_media_attachment_type.rb
mgabdev 5c36a30b69 Added new migrations for adding indexes
• Added:
- new migrations for adding indexes
2020-07-07 17:25:47 -05:00

8 lines
184 B
Ruby

class AddIndexToMediaAttachmentType < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :media_attachments, :type, algorithm: :concurrently
end
end