about summary refs log tree commit diff
path: root/db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2017-11-27 20:17:12 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2017-11-27 20:17:12 +0000
commit63d47e04c4b22fc5caf5e6f4d0156040c91339fe (patch)
tree49d101afef2356fc40040004142db4f9dedbc82e /db/migrate/20171125185353_add_index_reblog_of_id_and_account_to_statuses.rb
parente77c3996a513a45e5cad368b0053459f303c60cb (diff)
parentc6b7c772293ed1319dc57741487ce5bc774558a9 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
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.rb7
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