Method: SpreeInvoice::Generators::InstallGenerator#run_migrations
- Defined in:
- lib/generators/spree_invoice/install/install_generator.rb
#run_migrations ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/generators/spree_invoice/install/install_generator.rb', line 13 def run_migrations res = ask ">> Would you like to run the migrations now? [Y/n]" if res == "" || res.downcase == "y" run 'bundle exec rake db:migrate' else puts ">> Skiping rake db:migrate, don't forget to run it!" end end |