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
17 18 19 |
# File 'lib/zlocalize/rails/generators/translations_migration.rb', line 17 def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end |
Instance Method Details
#create_migration_file ⇒ Object
21 22 23 |
# File 'lib/zlocalize/rails/generators/translations_migration.rb', line 21 def create_migration_file migration_template 'translations_migration_template.rb', 'db/migrate/create_translations_table.rb' end |