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