Commit Graph

4 Commits

Author SHA1 Message Date
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
Dmitriy Zaporozhets d931cac7a3
Update schema.rb from db:migrate and fix invalid index check
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-09-07 14:11:49 +03:00
Robert Speicher 4edfad9678 Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
Kamil Trzcinski 92ec0ae0a7 Fix migrations for older PostgreSQL versions
- Do not care about error when creating index on PostgreSQL
- Test against PostgreSQL 9.2
2017-05-23 00:08:51 +02:00