MCQs > IT & Programming > Ruby On Rails > Suppose a model is created as follows: rails generate model Sales rake db:migrate What would be the best way to completely undo these changes, assuming nothing else has changed in the meantime?

Ruby On Rails MCQs

Suppose a model is created as follows:
rails generate model Sales
rake db:migrate
What would be the best way to completely undo these changes, assuming
nothing else has changed in the meantime?

Answer

Correct Answer: rake db:rollback; rails destroy model Sales

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it