Heroku rollback

A while ago had a problem in a production server in which I used Heroku’s rollback command, which goes back to the previous push/migration. When you run: heroku rollback It goes a step back in your commits/changes but upgrades the version. Current version = v33, after rollbackĀ current version = 34. If for any reason rollback […]

Read More Heroku rollback

Ruby cover? instead of include?

Last week I learned that we should use cover? instead of include?. When you ask a range if it includes something, ruby is going to instantiate every object within that range and then check if the object you pass into include? exists in there. If you ask cover? it’s just going to figure out and […]

Read More Ruby cover? instead of include?