Class: Jive::Tile::ActiveRecordGenerator
- Inherits:
-
Generator
- Object
- Rails::Generators::Base
- Generator
- Jive::Tile::ActiveRecordGenerator
- Extended by:
- NextMigrationVersion
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/jive/tile/active_record_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from NextMigrationVersion
Class Method Details
.next_migration_number(dirname) ⇒ Object
19 20 21 |
# File 'lib/generators/jive/tile/active_record_generator.rb', line 19 def self.next_migration_number(dirname) ::ActiveRecord::Generators::Base.next_migration_number dirname end |
Instance Method Details
#create_migration_file ⇒ Object
15 16 17 |
# File 'lib/generators/jive/tile/active_record_generator.rb', line 15 def create_migration_file migration_template "migration_0.1.0.rb", "db/migrate/add_jive_tiles_0_1_0_migration.rb" end |