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
Could not dump due to undefined method column_spec_for_primary_key
#34
Comments
Quick search reveals similar error message for another gem. Here is a link to the fix for that gem in case it provides insight.Ankane/Multiverse |
I also looked through the changes made to ActiveRecord in 5.2 and this seems relevant: Remove deprecated #migration_keys. |
getting this too in 5.2 @ka8725 any ideas? |
@mapreal19 @ka8725
to
and was then able to run the squash command. The result didn't error out but I had to remove a few lines as it appeared to dump a single migration file. So a work-around, but not perfect. |
@memoht maybe we can sanitize that output removing those lines? I had to do the same thing myself |
Another idea could be to use https://github.com/jalkoby/squasher, the focus of this gem could just be data migrations and testing them |
@mapreal19 Thanks for the recommendation. |
Have just released the new version and it doesn't have squasher anymore. Thanks for your contribution, guys! |
Recently finished an upgrade to Rails 5.2 for my app and used
rake db:migrate:squash
to cleanup previous migrations. No error message on CLI, but thecreate_schema.rb
file is full of the following:So not sure what is wrong. Tried to pull the gem from the master branch and still same result.
The text was updated successfully, but these errors were encountered: