fixes #942
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class DropIndexPostsOnCreatedAtDate < ActiveRecord::Migration
|
||||
def up
|
||||
execute "set statement_timeout = 0"
|
||||
execute "drop index index_posts_on_created_at_date"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "set statement_timeout = 0"
|
||||
execute "create index index_posts_on_created_at_date on posts(date(created_at))"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user