Another MigrationManager fix.

self.database -> self.database.engine (thanks again Elrond for the catch)
This commit is contained in:
Christopher Allan Webber 2012-01-02 14:56:05 -06:00
parent bf81382896
commit dc5da0f891

View File

@ -127,7 +127,7 @@ class MigrationManager(object):
assert not model.__table__.exists(self.database)
self.migration_model.metadata.create_all(
self.database,
self.database.engine,
tables=[model.__table__ for model in self.models])
def create_new_migration_record(self):