Class: Forge::Generators::I18nMigrationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Forge::Generators::I18nMigrationsGenerator
- Defined in:
- lib/forge/lib/generators/forge/i18n_migrations/i18n_migrations_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
6 7 8 9 |
# File 'lib/forge/lib/generators/forge/i18n_migrations/i18n_migrations_generator.rb', line 6 def copy_files = Time.now.strftime('%Y%m%d%H%M%S') template("migration.rb", File.join('db/migrate', "#{}_add_i18n_fields_#{file_hash.capitalize}.rb")) end |