Skip to content

Instantly share code, notes, and snippets.

@ccyrille
Created February 7, 2018 16:44
Show Gist options
  • Save ccyrille/09fc3d8fb09a13add2a59ba53df66f5c to your computer and use it in GitHub Desktop.
Save ccyrille/09fc3d8fb09a13add2a59ba53df66f5c to your computer and use it in GitHub Desktop.
class AddIndexToUsersOnName < ActiveRecord::Migration
disable_ddl_transaction!
def change
add_index :users, :name, algorithm: :concurrently
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment