diff --git a/db/migrate/20241202233312_add_private_index_to_collections.rb b/db/migrate/20241202233312_add_private_index_to_collections.rb new file mode 100644 index 00000000..f416f473 --- /dev/null +++ b/db/migrate/20241202233312_add_private_index_to_collections.rb @@ -0,0 +1,7 @@ +class AddPrivateIndexToCollections < ActiveRecord::Migration[8.0] + def change + add_index :collections, :private, name: 'index_collections_on_private' + + add_index :items, [:collection_id, :private, :updated_at] + end +end