eBooru/db/migrate/20220516103329_post_comment_locked.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

10 lines
230 B
Ruby

# frozen_string_literal: true
class PostCommentLocked < ActiveRecord::Migration[6.1]
def change
Post.without_timeout do
add_column :posts, :is_comment_disabled, :boolean, null: false, default: false
end
end
end