Fix column limits

Has set a limit of 0, which makes little sense...
This commit is contained in:
Henne Vogelsang 2024-11-22 13:30:45 +01:00
parent 299250a574
commit 928e590a47
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class ChangeCommentSubjectLimit < ActiveRecord::Migration[7.0]
def up
change_column :comments, :subject, :string, limit: 255
end
def down
raise ActiveRecord::IrreversibleMigration.new('Cannot reverse migration.')
end
end