Class: TranslationDiff::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ActiveRecord::Generators::Migration
Defined in:
lib/generators/translation_diff/install_generator.rb

Overview

rails generate translation_diff:install -- writes the migration for both SQL-backed tables.

Instance Method Summary collapse

Instance Method Details

#create_migration_file ⇒ Object



12
13
14
# File 'lib/generators/translation_diff/install_generator.rb', line 12

def create_migration_file
  migration_template "create_translation_diff_tables.rb.erb", "db/migrate/create_translation_diff_tables.rb"
end