Skip to content

Commit

Permalink
rake ffcrm:setup no longer nukes the database before starting. Crucia…
Browse files Browse the repository at this point in the history
…l for engine mode. [ci skip]
  • Loading branch information
steveyken committed Apr 20, 2013
1 parent f7760bb commit 6a7def9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/ffcrm/setup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace :ffcrm do
desc "Prepare the database"
task :setup => :environment do
if ENV["PROCEED"] != 'true'
puts "\nYour database [#{ActiveRecord::Base.connection.current_database}] is about to be reset. If you choose to proceed all the existing data will be lost.\n\n"
puts "\nFatFree CRM is about to run migrations on your database [#{ActiveRecord::Base.connection.current_database}]. Make sure you have a backup before proceeding.\n\n"
proceed = false
loop do
print "Continue [yes/no]: "
Expand All @@ -18,7 +18,7 @@ namespace :ffcrm do

# Don't continue unless user typed y(es)
if proceed =~ /y(?:es)*/i
Rake::Task["db:migrate:reset"].invoke
Rake::Task["db:migrate"].invoke
Rake::Task["ffcrm:setup:admin"].invoke
else
puts "Aborted setup."
Expand Down

0 comments on commit 6a7def9

Please sign in to comment.