-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix column type for
job_id
foreign keys in executions tables
No idea how this ended up as `integer`. The initial tables were created via a migration using `t.references`.
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4667002
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rosa What's the suggested upgrade path here, now that we don't have migrations anymore?
I don't mind re-creating the background job database, since it's completely transactional for us. But for some it might not be practical or possible, because:
Ideally, in the future, we'd be able to somehow run a rake task that figures out the current schema, diffs that with the schema in the file, then migrates the database to the declared schema.
4667002
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @matteeyah, if we have to change the schema in the future, we'll add a migration. In this case, the schema generated was wrong, previous migrations used
bigint
, the schema withinteger
didn't match the migrations, which is why I pushed a change to the schema.