Class: AttrTranslatableGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/attr_translatable/attr_translatable_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



14
15
16
# File 'lib/generators/attr_translatable/attr_translatable_generator.rb', line 14

def self.next_migration_number(path)
  ActiveRecord::Generators::Base.next_migration_number(path)
end

Instance Method Details

#create_migration_filesObject



18
19
20
# File 'lib/generators/attr_translatable/attr_translatable_generator.rb', line 18

def create_migration_files
  create_migration_file_if_not_exist 'create_attr_translations'
end