• J
    Use FileUpdateChecker for Migration::CheckPending · 4705ba82
    John Hawthorn 提交于
    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
railtie.rb 9.6 KB