Class: Ibham::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ibham::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/ibham/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
9 10 11 |
# File 'lib/generators/ibham/install_generator.rb', line 9 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#create_migration_file ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/ibham/install_generator.rb', line 14 def create_migration_file unless self.class.migration_exists?(File.dirname(File.('db/migrate/ibham_create_votes')), 'ibham_create_votes') migration_template 'migration.rb', 'db/migrate/ibham_create_votes.rb' end end |