Ruby Developer Question: Download Questions PDF
Do you know when self.up and self.down method is used?
![Ruby Developer Interview Answer Ruby Developer Interview Question](https://globalguideline.com/public/images/interview/22.png)
Answer:
When migrating to a new version, self.up method is used while self.down method is used to roll back my changes if needed.
Download Ruby Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is Rails Active Record in Ruby on Rails? | Tell me what is Rails Migration? |