Files
redux-scraper/db/migrate/20250722235434_drop_unused_embedding_indexes.rb
Dylan Knutson 931e736bbf fix index names
2025-07-23 02:04:25 +00:00

18 lines
678 B
Ruby

class DropUnusedEmbeddingIndexes < ActiveRecord::Migration[7.2]
def up
remove_index :domain_user_user_follow_to_factors,
name: "index_domain_user_user_follow_to_factors_on_embedding"
rename_index :domain_user_user_follow_to_factors,
"index_domain_user_user_follow_to_factors_on_embedding_hnsw",
"index_domain_user_user_follow_to_factors_on_embedding"
rename_index :domain_user_post_fav_post_factors,
"domain_user_post_fav_post_factors_hnsw_l2_ops",
"index_domain_user_post_fav_post_factors_on_embedding"
end
def down
raise ActiveRecord::IrreversibleMigration
end
end