Skip to content

A platform for community discussion. Free, open, simple.

FIX: errors that're triggering by too long excerpts (#13056)

Andrei Prigorshnev00300b118d54
diff --git a/db/post_migrate/20210513125608_remove_length_constrain_from_topic_excerpt.rb b/db/post_migrate/20210513125608_remove_length_constrain_from_topic_excerpt.rb
new file mode 100644
index 00000000000..3989692b545
--- /dev/null
+++ b/db/post_migrate/20210513125608_remove_length_constrain_from_topic_excerpt.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class RemoveLengthConstrainFromTopicExcerpt < ActiveRecord::Migration[6.1]
+ def up
+ change_column :topics, :excerpt, :string, null: true
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end