ankane/multiverse

Could not dump table because of undefined method `column_spec_for_primary_key`

Closed this issue · 2 comments

Just added the gem to a rails-template I'm working on and the schema files got borked.

Here's the diff for the pr:

https://github.com/mklemme/rails-template/pull/24/files#diff-1acd2e7e27a227829d5d14a91c863bb6

# schema.rb
ActiveRecord::Schema.define(version: 2018_02_01_050311) do

# Could not dump table "users" because of following NoMethodError
#   undefined method `column_spec_for_primary_key' for #<ActiveRecord::SchemaDumper:0x00007f8f494322d8>

# ... cont

end

I used devise for users and the other tables are custom.

Ruby 2.4.2
Rails 5.2.0.beta2

screen shot 2018-02-14 at 11 14 53 pm

screen shot 2018-02-14 at 11 14 46 pm

I haven't been able to find anything that could cause this. Any ideas?

Hey @mklemme, thanks for reporting 👍 Fixed on master.

Confirming the update is working correctly now. I'll keep an eye out for the version bump.

Thanks for the patch. This gem is really useful! 🎉