osem-fcy/db/migrate/20241121114727_change_comment_subject_limit.rb

10 lines
238 B
Ruby
Raw Normal View History

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