📅  最后修改于: 2022-03-11 15:04:48.646000             🧑  作者: Mango
# Raises ActiveRecord::PendingMigrationError error if any migrations are pending.
def check_pending!(connection = Base.connection)
raise ActiveRecord::PendingMigrationError if connection.migration_context.needs_migration?
end
def load_schema_if_pending!