diaspora/db/migrate/20181227235201_clean_up_posts_indexes.rb
2018-12-28 01:39:49 +01:00

9 lines
234 B
Ruby

# frozen_string_literal: true
class CleanUpPostsIndexes < ActiveRecord::Migration[5.1]
def change
remove_index :posts, %i[id type created_at]
remove_index :posts, :tweet_id
add_index :posts, %i[created_at id]
end
end