Class: Skiplock::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Skiplock::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/skiplock/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
10 11 12 |
# File 'lib/generators/skiplock/install_generator.rb', line 10 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#create_config_file ⇒ Object
14 15 16 |
# File 'lib/generators/skiplock/install_generator.rb', line 14 def create_config_file create_file 'config/skiplock.yml', Skiplock::DEFAULT_CONFIG.to_yaml end |
#create_migration_file ⇒ Object
18 19 20 |
# File 'lib/generators/skiplock/install_generator.rb', line 18 def create_migration_file migration_template 'migration.rb.erb', 'db/migrate/create_skiplock_schema.rb' end |