Last active
January 10, 2017 09:57
-
-
Save andrey-str/f89048307f3e2ea9ea602b90d89795e0 to your computer and use it in GitHub Desktop.
Rasil Cheat Sheets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save all records added in IRB console | |
EntityName.all.each { |entity| entity.save! } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rollback database migration for 1 step | |
rake db:rollback | |
# Rollback database migration for N steps | |
rake db:rollback STEP=n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment