From cf3ec71aa564c7fe47ec79f8dd5f14e3bce0b85c Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 15 Jul 2019 13:34:05 -0500 Subject: local visibility scope, chat scope+tags, unlisted tags --- db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb (limited to 'db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb') diff --git a/db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb b/db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb new file mode 100644 index 000000000..ad4bb11b1 --- /dev/null +++ b/db/migrate/20190522043937_add_chat_and_local_indexes_to_statuses.rb @@ -0,0 +1,6 @@ +class AddChatAndLocalIndexesToStatuses < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + def change + add_index :statuses, [:account_id, :id, :visibility], where: 'visibility IN (0, 1, 2, 4, 5)', algorithm: :concurrently + end +end -- cgit