Commit 3cf5ae31 authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'improve_migrations_docs' into 'master'

Documentation: Correct inaccurate phrase related to disable_ddl_transaction mode

See merge request gitlab-org/gitlab-ce!21175
parents 7b61774a 918177b7
...@@ -134,9 +134,9 @@ should be more than enough. ...@@ -134,9 +134,9 @@ should be more than enough.
When removing an index make sure to use the method `remove_concurrent_index` instead When removing an index make sure to use the method `remove_concurrent_index` instead
of the regular `remove_index` method. The `remove_concurrent_index` method of the regular `remove_index` method. The `remove_concurrent_index` method
automatically drops concurrent indexes when using PostgreSQL, removing the automatically drops concurrent indexes when using PostgreSQL, removing the
need for downtime. To use this method you must disable transactions by calling need for downtime. To use this method you must disable single-transaction mode
the method `disable_ddl_transaction!` in the body of your migration class like by calling the method `disable_ddl_transaction!` in the body of your migration
so: class like so:
```ruby ```ruby
class MyMigration < ActiveRecord::Migration class MyMigration < ActiveRecord::Migration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment