diff options
Diffstat (limited to 'generator_templates/active_record/migration/migration.rb')
-rw-r--r-- | generator_templates/active_record/migration/migration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generator_templates/active_record/migration/migration.rb b/generator_templates/active_record/migration/migration.rb index 103c2fd7ea2..50d2b018ae7 100644 --- a/generator_templates/active_record/migration/migration.rb +++ b/generator_templates/active_record/migration/migration.rb @@ -16,6 +16,10 @@ class <%= migration_class_name %> < Gitlab::Database::Migration[<%= Gitlab::Data # To disable transactions uncomment the following line and remove these # comments: # disable_ddl_transaction! + # + # Configure the `gitlab_schema` to perform data manipulation (DML). + # Visit: https://docs.gitlab.com/ee/development/database/migrations_for_multiple_databases.html + # restrict_gitlab_migration gitlab_schema: :gitlab_main <%- if migration_action == 'add' -%> def change |