rake db:migrate_plugins - "rake aborted!"
Added by Denis Tomashenko over 16 years ago
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?
Apache 2.2.8
MySQL 5.0.45
Subversion 1.5.1
Ruby 1.8.6
Rails 2.1.0
Replies (6)
RE: rake db:migrate_plugins - "rake aborted!" - Added by Mischa The Evil over 16 years ago
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... :-)
RE: rake db:migrate_plugins - "rake aborted!" - Added by Denis Tomashenko over 16 years ago
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 :-)
RE: rake db:migrate_plugins - "rake aborted!" - Added by Mischa The Evil over 16 years ago
I would suggest to (always) make a backup of your DB before doing any critical stuff.
RE: rake db:migrate_plugins - "rake aborted!" - Added by Denis Tomashenko over 16 years ago
Yes. Me too. But I want understand for what "redmine_development" and why this critical for plugins migrate. For future :-)
RE: rake db:migrate_plugins - "rake aborted!" - Added by Thomas Lecavelier over 16 years ago
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...
RE: rake db:migrate_plugins - "rake aborted!" - Added by Mischa The Evil over 16 years ago
Just a quick link for some references: http://wiki.rubyonrails.org/rails/pages/UnderstandingMigrations