Commit 57f17c9a authored by Patrick Bair's avatar Patrick Bair

Merge branch 'ab/migration-template' into 'master'

Use migration class for create table template

See merge request gitlab-org/gitlab!70491
parents f7428fac 09643231
...@@ -3,9 +3,7 @@ ...@@ -3,9 +3,7 @@
# See https://docs.gitlab.com/ee/development/migration_style_guide.html # See https://docs.gitlab.com/ee/development/migration_style_guide.html
# for more information on how to write migrations for GitLab. # for more information on how to write migrations for GitLab.
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] class <%= migration_class_name %> < Gitlab::Database::Migration[<%= Gitlab::Database::Migration.current_version %>]
include Gitlab::Database::MigrationHelpers
# When using the methods "add_concurrent_index" or "remove_concurrent_index" # When using the methods "add_concurrent_index" or "remove_concurrent_index"
# you must disable the use of transactions # you must disable the use of transactions
# as these methods can not run in an existing transaction. # as these methods can not run in an existing transaction.
......
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