Skip to content

Instantly share code, notes, and snippets.

View patriciojofre's full-sized avatar
🇨🇱

Pato Jofre patriciojofre

🇨🇱
View GitHub Profile
@ChuckJHardy
ChuckJHardy / app.rake
Created May 29, 2011 12:34
Rake Task for Database Population
------------ From Rake Task
namespace :app do
# Checks and ensures task is not run in production.
task :ensure_development_environment => :environment do
if Rails.env.production?
raise "\nI'm sorry, I can't do that.\n(You're asking me to drop your production database.)"
end
end