#removes the username and password fields from database.yml remove_file "#{ENV['RAILS_ROOT']}/config/database.yml" copy_file File.expand_path('../../support/database.yml'), "#{ENV['RAILS_ROOT']}/config/database.yml" rake "db:drop:all" rake "db:create:all" generate "social_auth:install" generate :model, 'user email:string' gem_dir = File.expand_path('..',File.dirname(__FILE__)) # Finalise rake "db:migrate" rake "db:test:prepare"