Is there a rake task that shows the pending migrations in a rails app?
This works for rails 5.2
ActiveRecord::Base.connection.migration_context.needs_migration?