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