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 0000000000..3989692b54 --- /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