Class: Zlocalize::Generators::TranslationsMigrationGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Zlocalize::Generators::TranslationsMigrationGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/zlocalize/rails/generators/translations_migration.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(path) ⇒ Object
15 16 17 |
# File 'lib/zlocalize/rails/generators/translations_migration.rb', line 15 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#create_migration_file ⇒ Object
19 20 21 |
# File 'lib/zlocalize/rails/generators/translations_migration.rb', line 19 def create_migration_file migration_template 'translations_migration_template.rb', 'db/migrate/create_translations_table.rb' end |