Class: Circle::Generators::MigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Circle::Generators::MigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/circle/migration_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
13 14 15 |
# File 'lib/generators/circle/migration_generator.rb', line 13 def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end |
Instance Method Details
#install ⇒ Object
9 10 11 |
# File 'lib/generators/circle/migration_generator.rb', line 9 def install migration_template 'migration.rb', 'db/migrate/create_circle_tables.rb' end |