Open jcavalieri opened 5 years ago
Clossing.
I got passed this by adding a require
to application.rb
I'm actually a bit baffled how this worked before.
Sorry, re-opening. Error was buried.
/usr/local/bundle/gems/activerecord-5.2.3/lib/active_record/model_schema.rb:324:in `table_exists?'
/usr/local/bundle/gems/bitmask_attributes-1.0.0/lib/bitmask_attributes/definition.rb:29:in `validate_for'
/usr/local/bundle/gems/bitmask_attributes-1.0.0/lib/bitmask_attributes/definition.rb:14:in `install_on'
/usr/local/bundle/gems/bitmask_attributes-1.0.0/lib/bitmask_attributes.rb:25:in `bitmask'
/app/app/models/user.rb:33:in `<class:User>'
My hunch is Active Record has changed the model.table_exists?
which is being called here:
https://github.com/joelmoss/bitmask_attributes/blob/master/lib/bitmask_attributes/definition.rb#L29
This is what is throwing the exception.
I suspect this may have been introduced here: https://github.com/rails/rails/commit/0007501669879a8560090897f78cf1d1b69bf30d#diff-08a3e7333b5c1a6b357298070b7b6002
I'll see if I can get a PR together.
I'm finding the tests difficult to run, since the gem versions aren't locked down.
Hmmm, just seeing this: https://github.com/joelmoss/bitmask_attributes/pull/81
I'm upgrading from Rails 5.1 to 5.2 with Active Record now at 5.2.3. I'm using bitmask 1.0.
I'm just trying to do a db:create and I get the below error.
It worked before with Rails 5.1. Any ideas if this is a known issue?