Skip to content

Instantly share code, notes, and snippets.

@javier
Created January 16, 2009 12:51
Show Gist options
  • Save javier/47918 to your computer and use it in GitHub Desktop.
Save javier/47918 to your computer and use it in GitHub Desktop.
namespace :initialize do
desc "initialize users"
task :users => :environment do
u=User.find_or_initialize_by_email "[email protected]"
u.password='blabla'
u.save
end #task do
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment