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
|
server "hijiribe.donmai.us", :web, :app
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
class AddIndexUpdatedAtOnPostVersions < ActiveRecord::Migration
|
class AddIndexUpdatedAtOnPostVersions < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
|
execute "set statement_timeout = 0"
|
||||||
add_index :post_versions, :updated_at
|
add_index :post_versions, :updated_at
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
execute "set statement_timeout = 0"
|
||||||
remove_index :post_versions, :updated_at
|
remove_index :post_versions, :updated_at
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
class AddIndexCreatedAtOnUserFeedback < ActiveRecord::Migration
|
class AddIndexCreatedAtOnUserFeedback < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
|
execute "set statement_timeout = 0"
|
||||||
add_index :user_feedback, :created_at
|
add_index :user_feedback, :created_at
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
execute "set statement_timeout = 0"
|
||||||
remove_index :user_feedback, :created_at
|
remove_index :user_feedback, :created_at
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user