Gab-Social/db/migrate/20200707212832_add_index_to_account_created_at.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
175 B
Ruby

class AddIndexToAccountCreatedAt < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :users, :created_at, algorithm: :concurrently
end
end