fixes #2065
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user