rails/rails — Issue #4831: config.cache_classes = true results in errors when migrating
Author: clyfe
Created: 2012-02-01 19:18:28+00:00
State: open

If config.cache_classes = true
And I run rake db:migrate
And in controllers I have code that introspects models in class body:

class FoosController
Foo.columns
end

Then I get `Mysql2::Error: Table 'mydb.some_table' doesn't exist: SHOW FULL FIELDS FROM some_table'`

Background on this issue: https://github.com/activescaffold/active_scaffold/issues/131