Skip to content

Rake Tasks

Thomas Starzynski edited this page May 31, 2019 · 3 revisions

Custom Rake Tasks

# deletes all rekos of the user_id provided
noglob rails user:reset[1]
# deletes all movies from database (caution! do not run in prodution. Will break the rekos!)
noglob rails movies:delete_all

rake recap lecture

# SEE ALL TASKS
rake -T

# SEE ALL TASKS OF A GIVEN NAMESPACE
rake -T | grep user

Clone this wiki locally