Skip to content

Instantly share code, notes, and snippets.

@andrey-str
Last active January 10, 2017 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrey-str/f89048307f3e2ea9ea602b90d89795e0 to your computer and use it in GitHub Desktop.
Save andrey-str/f89048307f3e2ea9ea602b90d89795e0 to your computer and use it in GitHub Desktop.
Rasil Cheat Sheets
# Save all records added in IRB console
EntityName.all.each { |entity| entity.save! }
# 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