Commit 8db4eca6 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'aa-add-migration-helpers-to-the-example-for-add-text-limit' into 'master'

Add migration helpers to the example for add_text_limit

See merge request gitlab-org/gitlab!40348
parents 025f778f 3e22bc89
......@@ -38,6 +38,8 @@ For example, consider a migration that creates a table with two text columns,
```ruby
class CreateDbGuides < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
......@@ -179,6 +181,7 @@ in a post-deployment migration,
```ruby
class AddTextLimitMigration < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_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