I got this migration to work the first time I tried it, dropped the
table and not the migration won’t create the table but does not show any
errors. Here is the trace on the execution of the rake migrate:
I solved my problem. I needed to drop the schema_info table from the
database as well, not just the table I wanted to drop. When both tables
are cleared from the database, rake migrate wil create the new tables in
the database.
The migrations use the version number stored in a table named
schema_info
to know which migrations to execute. Did you reset this version number
before trying your migration once again ?
A better way to reset your schema would be to use “rake migrate
VERSION=0”.
HTH,
Stéphane.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.