summaryrefslogtreecommitdiff
path: root/rubocop/cop/migration/update_large_table.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add more large tables to copupdate-large-tables-copSean McGivern2018-06-221-1/+5
| | | | | These are all over 20 GB on GitLab.com. merge_request_diff_commits is several hundred gigabytes in size.
* Disallow methods that copy data on large tablesSean McGivern2018-06-191-1/+8
| | | | | | {change_column_type,rename_column}_concurrently both copy data from one column to another during a migration, which should not be done on GitLab.com. Instead, we should use background migrations.
* Use gitlab-stylesRémy Coutable2017-12-221-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Prevent update_column_in_batches on large tablesSean McGivern2017-11-171-0/+57
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.