This commit is contained in:
Toks
2015-01-19 14:26:25 -05:00
parent 5063e326e3
commit 8b2b981b80
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class AddUpdatedAtIndexToForumTopics < ActiveRecord::Migration
def up
execute "set statement_timeout = 0"
add_index :forum_topics, :updated_at
end
def down
execute "set statement_timeout = 0"
remove_index :forum_topics, :updated_at
end
end