We should probably add that object to the DB also :P

This commit is contained in:
Christopher Allan Webber 2012-01-02 13:38:08 -06:00
parent 09dcc34c95
commit 23f4c6b2fd

View File

@ -137,9 +137,10 @@ class MigrationManager(object):
""" """
Create a new migration record for this migration set Create a new migration record for this migration set
""" """
self.migration_model( migration_record = self.migration_model(
name=self.name, name=self.name,
version=self.latest_migration()) version=self.latest_migration())
self.database.add(migration_record)
self.database.commit() self.database.commit()
def dry_run(self): def dry_run(self):