A platform for community discussion. Free, open, simple.
Add an index on category_id to shared drafts
Robin Ward6aef8f9cd9ec
diff --git a/db/migrate/20180328180317_add_category_index_to_shared_drafts.rb b/db/migrate/20180328180317_add_category_index_to_shared_drafts.rbnew file mode 100644index 00000000000..cd1be7b23d4--- /dev/null+++ b/db/migrate/20180328180317_add_category_index_to_shared_drafts.rb@@ -0,0 +1,5 @@+class AddCategoryIndexToSharedDrafts < ActiveRecord::Migration[5.1]+ def change+ add_index :shared_drafts, :category_id+ end+end