Sha256: f4659cb6e11f8086f2b1beb9f9ec595e388ebec92cda20b6ba2c3387b133df77
Contents?: true
Size: 525 Bytes
Versions: 22
Compression:
Stored size: 525 Bytes
Contents
module SpreeGateway module Generators class InstallGenerator < Rails::Generators::Base class_option :migrate, type: :boolean, default: true, banner: 'Migrate the database' def add_migrations run 'bundle exec rake railties:install:migrations FROM=spree_gateway' end def run_migrations if options[:migrate] run 'bundle exec rake db:migrate VERBOSE=false' else puts "Skiping rake db:migrate, don't forget to run it!" end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems