lib/generators/audited/upgrade_generator.rb in audited-4.7.1 vs lib/generators/audited/upgrade_generator.rb in audited-4.8.0

- old
+ new

@@ -56,9 +56,13 @@ end if indexes.any? { |i| i.columns == %w[associated_id associated_type] } yield :revert_polymorphic_indexes_order end + + if indexes.any? { |i| i.columns == %w[auditable_type auditable_id] } + yield :add_version_to_auditable_index + end end end end end