Move with_timeout / without_timeout to ApplicationRecord.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class AddCreatedAtIndexToVersions < ActiveRecord::Migration
|
||||
def change
|
||||
ActiveRecord::Base.without_timeout do
|
||||
ApplicationRecord.without_timeout do
|
||||
add_index :note_versions, :created_at
|
||||
add_index :artist_versions, :created_at
|
||||
add_index :wiki_page_versions, :created_at
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class AddForumPostIdToTagRequests < ActiveRecord::Migration
|
||||
def change
|
||||
ActiveRecord::Base.without_timeout do
|
||||
ApplicationRecord.without_timeout do
|
||||
add_column :tag_aliases, :forum_post_id, :integer
|
||||
add_column :tag_implications, :forum_post_id, :integer
|
||||
add_column :bulk_update_requests, :forum_post_id, :integer
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class AddUniqueNameConstraintToUsers < ActiveRecord::Migration
|
||||
def up
|
||||
ActiveRecord::Base.without_timeout do
|
||||
User.without_timeout do
|
||||
remove_index :users, :name
|
||||
execute "create unique index index_users_on_name on users(lower(name))"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user