Class: PaperTrail::UpdateItemSubtypeGenerator

Inherits:
MigrationGenerator
  • Object
show all
Defined in:
lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb

Overview

Updates STI entries for PaperTrail

Instance Method Summary collapse

Methods inherited from MigrationGenerator

next_migration_number

Instance Method Details

#create_migration_fileObject



15
16
17
# File 'lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb', line 15

def create_migration_file
  add_paper_trail_migration("update_versions_for_item_subtype", sti_type_options: options)
end