Sha256: 90ed6ed176e8c065334a1460a92a7c98507c892249d7b2f109bb4ab2c1ddaafd

Contents?: true

Size: 532 Bytes

Versions: 10

Compression:

Stored size: 532 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 & 2 rubygems

Version Path
paper_trail-16.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-15.2.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/paper_trail-12.3.0/lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-15.1.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-15.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-14.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-13.0.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-12.3.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-12.2.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb
paper_trail-12.1.0 lib/generators/paper_trail/update_item_subtype/update_item_subtype_generator.rb