Class: OnlineMigrations::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OnlineMigrations::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/online_migrations/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer_file ⇒ Object
13 14 15 |
# File 'lib/generators/online_migrations/install_generator.rb', line 13 def copy_initializer_file template("initializer.rb", "config/initializers/online_migrations.rb") end |
#create_migration_file ⇒ Object
17 18 19 |
# File 'lib/generators/online_migrations/install_generator.rb', line 17 def create_migration_file migration_template("install_migration.rb", File.join(db_migrate_path, "install_online_migrations.rb")) end |