rake db:migrate_plugins - "rake aborted!"
Migrating engines... rake aborted! Unknown database 'redmine_development'
Yes, database.yml have a record for "redmine_development" database.
Ok. Delete all except "redmine_production" database. And again:
rake aborted! development database is not configured
What I must do and what need to configure for correctly plugin migrating?
I'm not completely sure if it's really the best way-to-go but I have managed to solve this by editing the config to use the same DB for both enviroments.
So don't delete the record but modify it... :-)
Nice idea. But this real working database. And I want to be sure. My boss and other developers kill me if I lost all data :-)
I would suggest to (always) make a backup of your DB before doing any critical stuff.
Yes. Me too. But I want understand for what "redmine_development" and why this critical for plugins migrate. For future :-)
Assuming you ran BEFORE db:migrate without plugins:
Restore your conf/database.yml
rake db:migrate_plugins RAILS_ENV=production?
It would be very useful to describe what you're doing and what you want...
Just a quick link for some references: http://wiki.rubyonrails.org/rails/pages/UnderstandingMigrations