Created
March 19, 2014 16:49
-
-
Save mikepmunroe/9645984 to your computer and use it in GitHub Desktop.
Rake task to pull emails for sample users
This file contains 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
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