Class: FeatureSetting::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FeatureSetting::Generators::InstallGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/feature_setting/install/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
11 12 13 |
# File 'lib/generators/feature_setting/install/install_generator.rb', line 11 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#create_migrations ⇒ Object
18 19 20 21 |
# File 'lib/generators/feature_setting/install/install_generator.rb', line 18 def create_migrations migration_name = 'create_fs_tables.rb' migration_template "migrations/#{migration_name}", "db/migrate/#{migration_name}" end |