Class: ActiveRecordRolloutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveRecordRolloutGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/active_record_rollout_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_initializer ⇒ Object
17 18 19 |
# File 'lib/generators/active_record_rollout_generator.rb', line 17 def create_initializer copy_file "active_record_rollout.rb", "config/initializers/active_record_rollout.rb" end |
#create_migration_file ⇒ Object
12 13 14 |
# File 'lib/generators/active_record_rollout_generator.rb', line 12 def create_migration_file migration_template "migration.rb", "db/migrate/setup_active_record_rollout.rb" end |