Skip to content

Commit

Permalink
Merge pull request #13679 from opf/bug/50020-fix-500-error-when-creat…
Browse files Browse the repository at this point in the history
…ing-a-news-title-longer-than-60-characters

[50020] Remove db string length constraint on news_journals.title
  • Loading branch information
cbliard committed Sep 11, 2023
2 parents 4c5e964 + bbf04ff commit e9a401b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e9a401b

Please sign in to comment.