Class: Satchel::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/satchel/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



8
9
10
# File 'lib/generators/satchel/install_generator.rb', line 8

def copy_initializer
  template "satchel_config.rb", "config/initializers/satchel_config.rb"
end

#run_migrationsObject



12
13
14
15
# File 'lib/generators/satchel/install_generator.rb', line 12

def run_migrations
  rake('satchel:install:migrations')
  rake('db:migrate')
end