Commit 3e22bc89 authored by Alper Akgun's avatar Alper Akgun

Add migration helpers to the example for add_text_limit

parent 025f778f
...@@ -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