rails schedule rake task to run in production only code example Example: run rake task rails $ bin/rake task_name