Skip to content
  • John Hawthorn's avatar
    4705ba82
    Use FileUpdateChecker for Migration::CheckPending · 4705ba82
    John Hawthorn authored
    Migration::CheckPending is a rack middleware normally used in
    development to raise an exception if there pending migrations.
    
    This commit replaces the existing caching, which avoided checking all
    migrations if the newest migration (by version number) hadn't changed.
    Instead, we now use FileUpdateChecker, which has two advantages: it can
    detect new migrations which aren't the highest version, and it is
    faster.
    4705ba82
    Use FileUpdateChecker for Migration::CheckPending
    John Hawthorn authored
    Migration::CheckPending is a rack middleware normally used in
    development to raise an exception if there pending migrations.
    
    This commit replaces the existing caching, which avoided checking all
    migrations if the newest migration (by version number) hadn't changed.
    Instead, we now use FileUpdateChecker, which has two advantages: it can
    detect new migrations which aren't the highest version, and it is
    faster.
Loading