Sha256: f2c3ebaabf2eb58de36bc8cdeb3c76bb3bc38d12eeadc45d0cf30f8a7a1d65ca

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

require_relative "../migration_generator"

module PaperTrail
  # Updates STI entries for PaperTrail
  class UpdateItemSubtypeGenerator < MigrationGenerator
    source_root File.expand_path("templates", __dir__)

    desc "Generates (but does not run) a migration to update item_subtype for STI entries in an "\
      "existing versions table."

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
paper_trail-12.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-11.1.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-11.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.3.1 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.3.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.2.1 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.2.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.1.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.0.1 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-10.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb