Class: Excursion::ActiveRecordGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Excursion::ActiveRecordGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/excursion/active_record_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
15 16 17 |
# File 'lib/generators/excursion/active_record_generator.rb', line 15 def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number dirname end |
Instance Method Details
#create_migration_file ⇒ Object
11 12 13 |
# File 'lib/generators/excursion/active_record_generator.rb', line 11 def create_migration_file migration_template 'migration.rb', 'db/migrate/create_excursion_route_pool.rb' end |