Skip to content

Instantly share code, notes, and snippets.

@mikepmunroe
Created March 19, 2014 16:49
Show Gist options
  • Save mikepmunroe/9645984 to your computer and use it in GitHub Desktop.
Save mikepmunroe/9645984 to your computer and use it in GitHub Desktop.
Rake task to pull emails for sample users
namespace :breakpointapp do
desc 'Prints emails for sample users to the console'
task :user_info => [:environment] do
unless Rails.env.development?
raise 'This task can only be run in the development environment'
end
puts User.pluck(:email)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment