|
|
@ -289,8 +289,6 @@ module Mastodon
|
|
|
|
# determines this method to be too complex while there's no way to make it
|
|
|
|
# determines this method to be too complex while there's no way to make it
|
|
|
|
# less "complex" without introducing extra methods (which actually will
|
|
|
|
# less "complex" without introducing extra methods (which actually will
|
|
|
|
# make things _more_ complex).
|
|
|
|
# make things _more_ complex).
|
|
|
|
#
|
|
|
|
|
|
|
|
# rubocop: disable Metrics/AbcSize
|
|
|
|
|
|
|
|
def update_column_in_batches(table_name, column, value)
|
|
|
|
def update_column_in_batches(table_name, column, value)
|
|
|
|
if transaction_open?
|
|
|
|
if transaction_open?
|
|
|
|
raise 'update_column_in_batches can not be run inside a transaction, ' \
|
|
|
|
raise 'update_column_in_batches can not be run inside a transaction, ' \
|
|
|
|