gitlab-org--gitlab-foss/rubocop
Sean McGivern d8be981466 Prevent update_column_in_batches on large tables
add_column_with_default is implemented in terms of update_column_in_batches, but
update_column_in_batches can be used independently. Neither of these should be
used on the specified large tables, because they will cause issues on large
instances like GitLab.com.

This also ignores the cop for all existing migrations, renaming
AddColumnWithDefaultToLargeTable where appropriate.
2017-11-17 16:56:50 +00:00
..
cop Prevent update_column_in_batches on large tables 2017-11-17 16:56:50 +00:00
migration_helpers.rb New Migration/UpdateColumnInBatches cop 2017-05-29 11:28:23 +02:00
model_helpers.rb Added Cop to blacklist polymorphic associations 2017-06-07 17:36:55 +02:00
rubocop.rb Prevent update_column_in_batches on large tables 2017-11-17 16:56:50 +00:00
spec_helpers.rb Add a new RSpec::EnvAssignment cop to prevent assigning to ENV in specs 2017-10-18 18:42:09 +02:00