Make latest_migration a property

This commit is contained in:
Christopher Allan Webber 2012-01-29 16:36:33 -06:00
parent 9a18573190
commit 47616ece50

View File

@ -76,6 +76,7 @@ class MigrationManager(object):
return self.database.query(
self.migration_model).filter_by(name=self.name).first()
@property
def latest_migration(self):
"""
Return a migration number for the latest migration, or 0 if