Class: Settingcrazy::Generators::SettingValuesMigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Settingcrazy::Generators::SettingValuesMigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/settingcrazy/setting_values_migration/setting_values_migration_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
9 10 11 |
# File 'lib/generators/settingcrazy/setting_values_migration/setting_values_migration_generator.rb', line 9 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#create_setting_values_migration_file ⇒ Object
13 14 15 |
# File 'lib/generators/settingcrazy/setting_values_migration/setting_values_migration_generator.rb', line 13 def create_setting_values_migration_file migration_template 'migration.rb', 'db/migrate/create_settings_values' end |