5

With Ruby, the migration only use a rake command, but in NodeJS, i'm not sure how i can do that. Any idea?

1

2 Answers 2

1

This might help: https://github.com/visionmedia/node-migrate

Sign up to request clarification or add additional context in comments.

Comments

0

You could copy your database up using taps

1 Comment

Taps, I believe, use migrations. I just tried to push my database to heroku but the logs say that my relation (ie table) 'posts' does not exist. So I'm guessing the push command only updates data, not the structure of you db. Perhaps you could shell into the heroku database and recreate the tables there? But there must be an easier way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.