Class: Satchel::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Satchel::Generators::InstallGenerator
- Defined in:
- lib/generators/satchel/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
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_migrations ⇒ Object
12 13 14 15 |
# File 'lib/generators/satchel/install_generator.rb', line 12 def run_migrations rake('satchel:install:migrations') rake('db:migrate') end |