4

I am working on an existing rails application, making changes and updating it.

How do I check if there are unrun rake db:migrate in it? Is there a direct command?

2 Answers 2

6

Running this:

rake db:migrate:status 

Would give you this:

 up 20130415141113 Rename coupon to discount coupon up 20130416144722 Create ratings down 20130419102623 Add published to product down 20130419124429 Add attachment photo to users 

Anything that is 'down' has NOT been migrated.

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

Comments

1
rake db:migrate:status 

Will give you that information

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.