Sha256: a751bd5d830be1ae0a42b0fae3834d9fb60d1410c16f772ab8b412741a53b28d
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
module SpreeIdVerification module Generators class InstallGenerator < Rails::Generators::Base class_option :auto_run_migrations, type: :boolean, default: false def add_migrations run 'bundle exec rake railties:install:migrations FROM=spree_id_verification' end def run_migrations run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]')) if run_migrations run 'bundle exec rails db:migrate' else puts 'Skipping rails db:migrate, don\'t forget to run it!' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_id_verification-0.0.1.alpha | lib/generators/spree_id_verification/install/install_generator.rb |