eBooru/db/migrate/20230316084945_help_pages_add_default_values.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

11 lines
351 B
Ruby

# frozen_string_literal: true
class HelpPagesAddDefaultValues < ActiveRecord::Migration[7.0]
def change
change_column_null :help_pages, :related, false
change_column_default :help_pages, :related, from: nil, to: ""
change_column_null :help_pages, :title, false
change_column_default :help_pages, :title, from: nil, to: ""
end
end