update migrations

This commit is contained in:
albert
2013-02-20 23:02:43 -05:00
parent ed9e0930d6
commit 44028b8b95
3 changed files with 5 additions and 1 deletions

View File

@@ -1,2 +1,2 @@
server "sonohara.donmai.us", :web, :app, :primary => true
server "sonohara.donmai.us", :web, :app, :db, :primary => true
server "hijiribe.donmai.us", :web, :app

View File

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

View File

@@ -1,9 +1,11 @@
class AddIndexCreatedAtOnUserFeedback < ActiveRecord::Migration
def up
execute "set statement_timeout = 0"
add_index :user_feedback, :created_at
end
def down
execute "set statement_timeout = 0"
remove_index :user_feedback, :created_at
end
end