Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[50020] Remove db string length constraint on news_journals.title

Christophe Bliardbbf04ff6474d
diff --git a/db/migrate/20230911093530_remove_news_journals_title_length_constraint.rb b/db/migrate/20230911093530_remove_news_journals_title_length_constraint.rb
new file mode 100644
index 00000000000..62c3d812064
--- /dev/null
+++ b/db/migrate/20230911093530_remove_news_journals_title_length_constraint.rb
@@ -0,0 +1,9 @@
+class RemoveNewsJournalsTitleLengthConstraint < ActiveRecord::Migration[7.0]
+ def up
+ change_column(:news_journals, :title, :string, limit: nil)
+ end
+
+ def down
+ change_column(:news_journals, :title, :string, limit: 60)
+ end
+end