Class: Blazer::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Blazer::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/blazer/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
13 14 15 |
# File 'lib/generators/blazer/install_generator.rb', line 13 def copy_config template "config.yml", "config/blazer.yml" end |
#copy_migration ⇒ Object
9 10 11 |
# File 'lib/generators/blazer/install_generator.rb', line 9 def copy_migration migration_template "install.rb", "db/migrate/install_blazer.rb", migration_version: migration_version end |
#migration_version ⇒ Object
17 18 19 |
# File 'lib/generators/blazer/install_generator.rb', line 17 def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end |