mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 23:28:02 -05:00
10 lines
234 B
Ruby
10 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
|