Class: SingleTableGlobalize3::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- SingleTableGlobalize3::MigrationGenerator
- Defined in:
- lib/generators/single_table_globalize3/migration_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_migration_file ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/single_table_globalize3/migration_generator.rb', line 9 def create_migration_file migration_template "migration.rb", "db/migrate/create_globalize_translations" generate "paper_trail:install #{"--force" if .force?}" if .with_versioning? migration_template "add_locale_column_to_versions.rb", "db/migrate/add_locale_column_to_versions" if .with_versioning? end |