Class: ActsAsSimpleTranslatable::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActsAsSimpleTranslatable::Generators::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/acts_as_simple_translatable/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
14 15 16 |
# File 'lib/generators/acts_as_simple_translatable/install_generator.rb', line 14 def self.next_migration_number(path) @migration_number = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i.to_s end |
Instance Method Details
#install ⇒ Object
10 11 12 |
# File 'lib/generators/acts_as_simple_translatable/install_generator.rb', line 10 def install migration_template "migration.rb", "db/migrate/create_translations.rb" end |