summaryrefslogtreecommitdiff
path: root/spec/rubocop/cop/migration/update_large_table_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-041-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-181-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-291-0/+2
|
* Disallow methods that copy data on large tablesSean McGivern2018-06-191-0/+20
| | | | | | {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-5/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Prevent update_column_in_batches on large tablesSean McGivern2017-11-171-0/+69
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.