Skip to content

Instantly share code, notes, and snippets.

config = Rails::Configuration.new
database = config.database_configuration[RAILS_ENV]["database"]
username = config.database_configuration[RAILS_ENV]["username"]
password = config.database_configuration[RAILS_ENV]["password"]
namespace :db do
#rake db:dump
desc "dumps the database to a sql file"
task :dump => :environment do