Add: #568 ハッシュタグ・メンション上限を超えた投稿もNGワード履歴に記録 (#579)

This commit is contained in:
KMY(雪あすか) 2024-02-17 12:16:41 +09:00 committed by GitHub
parent a6b5e64e15
commit e5ab4a3eb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 104 additions and 21 deletions

View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
class AddCountToNgwordHistories < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_column :ngword_histories, :count, :integer, null: false, default: 0
add_index :ngword_histories, [:uri, :reason, :created_at], unique: false, algorithm: :concurrently
end
end