diff options
Diffstat (limited to 'db/migrate/20220331130726_add_text_limit_to_topics_title.rb')
-rw-r--r-- | db/migrate/20220331130726_add_text_limit_to_topics_title.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20220331130726_add_text_limit_to_topics_title.rb b/db/migrate/20220331130726_add_text_limit_to_topics_title.rb new file mode 100644 index 00000000000..4a4b30edc0d --- /dev/null +++ b/db/migrate/20220331130726_add_text_limit_to_topics_title.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddTextLimitToTopicsTitle < Gitlab::Database::Migration[1.0] + disable_ddl_transaction! + + def up + add_text_limit :topics, :title, 255 + end + + def down + remove_text_limit :topics, :title + end +end |