Skip to content

Commit

Permalink
Fixes install generator`s auto-run-migrations option
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Deyen committed Nov 3, 2015
1 parent eb11397 commit 6f16372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/solidus_i18n/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def add_migrations
end

def run_migrations
answer = ask('Would you like to run the migrations now? [Y/n]')
if options[:auto_run_migrations] || ['', 'y', 'Y'].include?(answer)
if options[:auto_run_migrations] ||
['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
run 'bin/rake db:migrate'
else
puts "Skiping rake db:migrate, don't forget to run it!"
Expand Down

0 comments on commit 6f16372

Please sign in to comment.