makandra / active_type

Make any Ruby object quack like ActiveRecord
MIT License
1.09k stars 74 forks source link

No method `column_definitions` in ActiveType::NoTable::DummyConnection #93

Closed ESWAT closed 7 years ago

ESWAT commented 7 years ago

I have a Rails 5.1.1 app using minitest. My test suite passes until I transition any of my models to inherit from ActiveType::Object, then all my test cases produce this error:

NoMethodError: undefined method `column_definitions' for #<ActiveType::NoTable::DummyConnection:0x007fbdab13b300>
Did you mean?  column_for

Do I need to require anything special from ActiveRecord to get my suite passing again while using this gem?

ESWAT commented 7 years ago

Wow, completely my bad. I had forgotten to remove my fixtures when converting to ActiveType.