1. 18 Apr, 2018 1 commit
  2. 09 Apr, 2018 1 commit
  3. 06 Apr, 2018 1 commit
  4. 21 Mar, 2018 1 commit
  5. 08 Mar, 2018 1 commit
  6. 12 Jan, 2018 1 commit
  7. 11 Jan, 2018 1 commit
  8. 26 Dec, 2017 1 commit
  9. 22 Dec, 2017 1 commit
  10. 13 Dec, 2017 1 commit
  11. 11 Dec, 2017 1 commit
    • Sean McGivern's avatar
      Add cop for use of remove_column · 1ab33b15
      Sean McGivern authored
      remove_column should only be used in the up (or change) step of a migration if
      it's a post-deployment migration. Otherwise there will be downtime due to the
      ActiveRecord column cache, which we can avoid by using the IgnorableColumn
      concern in combination with a post-deployment migration.
      1ab33b15
  12. 22 Nov, 2017 1 commit
  13. 17 Nov, 2017 2 commits
    • Lin Jen-Shin's avatar
      Remove codes from bad merge · ffec300b
      Lin Jen-Shin authored
      ffec300b
    • Sean McGivern's avatar
      Prevent update_column_in_batches on large tables · d8be9814
      Sean McGivern authored
      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.
      d8be9814
  14. 16 Nov, 2017 1 commit
  15. 21 Oct, 2017 1 commit
  16. 18 Oct, 2017 1 commit
  17. 07 Oct, 2017 1 commit
    • jacopo's avatar
      Replaces `tag: true` into `:tag` in the specs · 0ce67858
      jacopo authored
      Replaces all the explicit include metadata syntax in the specs (tag:
      true) into the implicit one (:tag).
      Added a cop to prevent future errors and handle autocorrection.
      0ce67858
  18. 18 Sep, 2017 1 commit
  19. 14 Aug, 2017 1 commit
  20. 14 Jul, 2017 1 commit
  21. 07 Jul, 2017 2 commits
    • Yorick Peterse's avatar
      Added EachBatch for iterating tables in batches · ff78af15
      Yorick Peterse authored
      This module provides a class method called `each_batch` that can be used
      to iterate tables in batches in a more efficient way compared to Rails'
      `in_batches` method. This commit also includes a RuboCop cop to
      blacklist the use of `in_batches` in favour of this new method.
      ff78af15
    • Yorick Peterse's avatar
      Added EachBatch for iterating tables in batches · 5f9c8458
      Yorick Peterse authored
      This module provides a class method called `each_batch` that can be used
      to iterate tables in batches in a more efficient way compared to Rails'
      `in_batches` method. This commit also includes a RuboCop cop to
      blacklist the use of `in_batches` in favour of this new method.
      5f9c8458
  22. 06 Jul, 2017 3 commits
  23. 05 Jul, 2017 1 commit
  24. 14 Jun, 2017 1 commit
  25. 13 Jun, 2017 1 commit
  26. 07 Jun, 2017 1 commit
  27. 06 Jun, 2017 1 commit
  28. 31 May, 2017 1 commit
  29. 29 May, 2017 1 commit
  30. 28 Apr, 2017 2 commits
  31. 05 Apr, 2017 1 commit
  32. 07 Mar, 2017 1 commit
  33. 01 Mar, 2017 1 commit
  34. 10 Feb, 2017 1 commit
    • Yorick Peterse's avatar
      Enforce use of add_concurrent_foreign_key · 766060bc
      Yorick Peterse authored
      This adds a Rubocop rule to enforce the use of
      add_concurrent_foreign_key instead of the regular add_foreign_key
      method. This cop has been disabled for existing migrations so we don't
      need to change those.
      766060bc
  35. 09 Feb, 2017 1 commit