diff options
Diffstat (limited to 'db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb')
-rw-r--r-- | db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb b/db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb new file mode 100644 index 000000000..37662eaa5 --- /dev/null +++ b/db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb @@ -0,0 +1,7 @@ +class AddIndexReblogOfIdAndAccountToStatuses < ActiveRecord::Migration[5.1] + disable_ddl_transaction! + + def change + add_index :statuses, [:reblog_of_id, :account_id], algorithm: :concurrently + end +end |