1. 24 Aug, 2019 2 commits
    • Stan Hu's avatar
      Merge branch 'fix-migration' into 'master' · 892e4c0d
      Stan Hu authored
      Delete rename trigger before creating to prevent error
      
      See merge request gitlab-org/gitlab-ce!32147
      892e4c0d
    • Reuben Pereira's avatar
      Drop existing trigger before creating new one · 599cc499
      Reuben Pereira authored
      - When renaming a column concurrently, drop any existing trigger before
      attempting to create a new one.
      
      When running migration specs multiple times (as it happens during
      local development), the down method of previous migrations are called.
      If any of the called methods contains a call to
      rename_column_concurrently, a trigger will be created and not removed.
      So, the next time a migration spec is run, if the same down method is
      executed again, it will cause an error when attempting to create the
      trigger (since it already exists). Dropping the trigger if it already
      exists will prevent this problem.
      599cc499
  2. 23 Aug, 2019 38 commits