ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
322 B

  1. class AddIndexToPostSimilarities < ActiveRecord::Migration[8.0]
  2. def change
  3. remove_index :post_similarities, name: 'index_post_similarities_on_post_id'
  4. add_index :post_similarities, [:post_id, :cos],
  5. order: { cos: :desc },
  6. name: 'index_post_similarities_on_post_id_and_cos'
  7. end
  8. end