1. 24 Aug, 2019 1 commit
    • 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 39 commits