rake migrate problem
- Adamwest
- Posts: 16
- Starts: 12
- Wiki Edits: 0
im having a bit of trouble getting my data migrations into the mysql database. I created a database, and granted a user permission to access the database. unfortunately i don't get a response when i type: rake migrate. nothing in the log. no output. my database.yml is set up correctly. what else could be wrong?
- Luminous
- Posts: 26
- Starts: 1
- Wiki Edits: 0
It could be one of two problems:
1) Is there already data in the database? Check the version of the schema_info table. If it is already set to the latest migration, then nothing will happen because the rake task things the DB is up to date
2) When you do a PRODUCTION migration, the command is:
rake db:migrate RAILS_ENV=production
Anything else will fail.
1) Is there already data in the database? Check the version of the schema_info table. If it is already set to the latest migration, then nothing will happen because the rake task things the DB is up to date
2) When you do a PRODUCTION migration, the command is:
rake db:migrate RAILS_ENV=production
Anything else will fail.