Fix: 一部サーバーの投稿が参照引用できない問題・参照引用時、フェッチを基本しないよう変更
This commit is contained in:
parent
acdf1ef2c9
commit
7b847f4eb3
7 changed files with 105 additions and 11 deletions
13
db/migrate/20231214225249_index_to_statuses_url.rb
Normal file
13
db/migrate/20231214225249_index_to_statuses_url.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class IndexToStatusesURL < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def up
|
||||
add_index :statuses, :url, name: :index_statuses_on_url, algorithm: :concurrently, opclass: :text_pattern_ops, where: 'url IS NOT NULL AND url <> uri'
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :statuses, name: :index_statuses_on_url
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue