lib/generators/audited/migration.rb in audited-5.4.2 vs lib/generators/audited/migration.rb in audited-5.4.3
- old
+ new
@@ -14,10 +14,10 @@
end
private
def timestamped_migrations?
- (Rails.version >= "7.0") ?
+ (Rails.gem_version >= Gem::Version.new("7.0")) ?
::ActiveRecord.timestamped_migrations :
::ActiveRecord::Base.timestamped_migrations
end
end
end