Run rake db:schema:dump after rake db:migrate_plugins
rake db:migrate runs
rake db:schema:dump after applying all migrations. Thus you can run
rake test directly after
This patch applies the same behavior to
rake db:migrate_plugins, so it is easier to test if your plugins did not break Redmine. Patch is based on trunk (actually, master of git mirror).