Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rake not creating databases

Status
Not open for further replies.
Joined
Jan 3, 2008
Messages
4
Location
US
I am some what new to ruby but not new to programming.


i am using rad rails and everything seems to be working correctly.

Except when I try to get Rake to migrate:db

I get no errors but the database never updates.

I have read that this could be a database revision number issue.

But I am not really sure where to go from there. Anyone have a suggestion?
 
What version of RoR are you using? If your using v2.0 or higher, then try this:

rake db:create
rake db:migrate

Thanks!
Nathan

Want to learn Chinese?
 
Rake puts a one-row table in your database, where it keeps the current version of the database. Try deleting this table and re-running the migration. This should rerun all your migrations from the beginning.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top