I have upgraded recently my app to Rails 4 (from Rails 3.2).
But seems that the app doesn't find anymore some mysql tables, for example a table called Accidents
.
In the app I find this error:
Mysql2::Error: Table 'gms.accidents' doesn't exist: SHOW FULL FIELDS FROM `accidents`
Ok, it seems that the table doesn't exists anymore, then (seen that is in dev mode and there is no problem to reset the DB), I run in the terminal rake db:schema:load
, but:
-- create_table("accidents", {:force=>true})
rake aborted!
Mysql2::Error: Tablespace for table '`gms`.`accidents`' exists. Please DISCARD the tablespace before IMPORT.: CREATE TABLE `accidents`
[...]
What happened? The table doesn't exists but exists??
Why the app doesn't find anymore some tables?