This commit is contained in:
Toks
2013-12-16 22:03:06 -05:00
parent 4f537b2136
commit 94c0318d03

View File

@@ -0,0 +1,13 @@
class AddUpdatedAtAndIdIndexToPostVersions < ActiveRecord::Migration
def self.up
execute "set statement_timeout = 0"
remove_index :post_versions, :updated_at
add_index :post_versions, [:updated_at, :id]
end
def self.down
execute "set statement_timeout = 0"
remove_index :post_versions, [:updated_at, :id]
add_index :post_versions, :updated_at
end
end