* Add: #581 NGワード検出履歴を定期的に削除する処理 * マイグレーションコードを修正
This commit is contained in:
parent
aec832e257
commit
b2acc7dbb8
6 changed files with 26 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class IndexToSortForNgWordCreatedDate < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :ngword_histories, :created_at, algorithm: :concurrently
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_27_033337) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_02_27_222450) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
@ -936,6 +936,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_27_033337) do
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "count", default: 0, null: false
|
||||
t.index ["created_at"], name: "index_ngword_histories_on_created_at"
|
||||
t.index ["uri", "keyword", "created_at"], name: "index_ngword_histories_on_uri_and_keyword_and_created_at"
|
||||
t.index ["uri", "reason", "created_at"], name: "index_ngword_histories_on_uri_and_reason_and_created_at"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue