Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default value for
RepublishingEvent
s
When we added the `bulk` field in [`578590b27`](578590b) it seemed to default to `false` when creating new `RepublishingEvent`s without us needing to set a default value. It appears that before merging this PR, a rubocop update was merged and the PR branch not rebased with `main` after this. This caused Rubocop to fail on `main` due to this rubocop issue. Here we add an explicit `false` default value for `RepublishingEvent`s and ignore the Rubocop violation on the previous migration. I've had to use `up` rather than `change` here as `change_column` is not reversible. According to a comment on the accepted answer on [this Stack Overflow post](578590b), ``` If you need reversible migrations, put this in an up block rather than a change block. You can leave the down block empty. It won't revert the table to the original condition but the migration can be rolled back. ```
- Loading branch information