Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 6月 06, 2023
    • Abdul Wadood's avatar
      Fix false positives for Migration/SchemaAdditionMethodsNoPost cop · 8b18112b
      Abdul Wadood 创作于
      We allow `add_column` and `create_table` methods inside the `down`
      method in post-deploy migrations. But if these methods were wrapped
      inside a statement like `if` then the cop was raising an error.
      For example, in the following, the 2nd example was being incorrectly
      flagged as an offense:
      
      ```
      def down
        add_column(:table, :column)
      end
      ```
      
      ```
      def down
        add_column(:table, :column) unless column_exists(:table, :column)
      end
      ```
      8b18112b
  2. 6月 05, 2023
加载中