Class: HasDynamicColumns::ActiveRecordGenerator
- Inherits:
-
HasDynamicColumnsGenerator
- Object
- Rails::Generators::Base
- HasDynamicColumnsGenerator
- HasDynamicColumns::ActiveRecordGenerator
- Extended by:
- NextMigrationVersion
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/has_dynamic_columns/active_record_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from NextMigrationVersion
Class Method Details
.next_migration_number(dirname) ⇒ Object
18 19 20 |
# File 'lib/generators/has_dynamic_columns/active_record_generator.rb', line 18 def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number dirname end |
Instance Method Details
#create_migration_file ⇒ Object
14 15 16 |
# File 'lib/generators/has_dynamic_columns/active_record_generator.rb', line 14 def create_migration_file migration_template "migration.rb", "db/migrate/add_has_dynamic_columns.rb" end |