-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Migration bug after Rails 5.2 #489
Labels
Comments
I'm thinking Option 2. |
Okay, I might try looking into this today then. Option 1 was the one line change shown above, so the other one will take a bit more work to do, but should be manageable. |
@miq-bot assign @NickLaMuro |
@NickLaMuro 'NickLaMuro' is an invalid assignee, ignoring... |
FINE! BE THAT WAY!!!1! 😤 |
Alright, opened up a fix in #491 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So while working on #469 and was asked to change a column in the database, I ended up re-running migrations entirely by doing the following:
The error returned was remedied by doing one of the following:
miq_bot/db/migrate/20150730043503_create_batch_tables.rb
Line 10 in ccbac59
ActiveRecord::Migration[4.2]
instead of5.1
.Option 2 is probably the more "correct" approach, but does end up changing the
db/schema.rb
, and was technically written for Rails 4.0, and you can't use that version with the versioned migration classes.So "asking the audience" on what we think is the best approach to fix this, and I can put together a PR. If "Option 2", we probably should fix all of the migrations so they are based off the closest Rails version available, so that will be a much larger change.
The text was updated successfully, but these errors were encountered: