Class: Alchemrest::KillSwitchMigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Alchemrest::KillSwitchMigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/alchemrest/kill_switch_migration_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
12 13 14 |
# File 'lib/generators/alchemrest/kill_switch_migration_generator.rb', line 12 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number dirname end |
Instance Method Details
#create_migration_file ⇒ Object
16 17 18 19 |
# File 'lib/generators/alchemrest/kill_switch_migration_generator.rb', line 16 def create_migration_file migration_template 'kill_switch_migration.rb.erb', "db/migrate/create_alchemrest_kill_switches.rb", migration_version: end |