Update 20170519204506_fix_last_noted_at_index_on_posts.rb

This commit is contained in:
Albert Yi
2017-05-22 11:38:37 -07:00
committed by GitHub
parent fad4d48b1c
commit 9bc4e1a5df

View File

@@ -6,6 +6,8 @@ class FixLastNotedAtIndexOnPosts < ActiveRecord::Migration
remove_index :posts, column: :last_noted_at
add_index :posts, :last_noted_at, order: "DESC NULLS LAST"
execute "analyze posts"
end
end
end