diff --git a/cloudkitty/billing/hash/db/api.py b/cloudkitty/billing/hash/db/api.py index c36da2ad..0afac28c 100644 --- a/cloudkitty/billing/hash/db/api.py +++ b/cloudkitty/billing/hash/db/api.py @@ -95,7 +95,7 @@ class HashMap(object): """Base class for hashmap configuration.""" @abc.abstractmethod - def get_migrate(self): + def get_migration(self): """Return a migrate manager. """ diff --git a/cloudkitty/billing/hash/db/sqlalchemy/api.py b/cloudkitty/billing/hash/db/sqlalchemy/api.py index 7df2040c..7db6f34a 100644 --- a/cloudkitty/billing/hash/db/sqlalchemy/api.py +++ b/cloudkitty/billing/hash/db/sqlalchemy/api.py @@ -35,7 +35,7 @@ def get_backend(): class HashMap(api.HashMap): - def get_migrate(self): + def get_migration(self): return migration def get_service(self, service): diff --git a/cloudkitty/cli/dbsync.py b/cloudkitty/cli/dbsync.py index 6e0d2dda..b564f329 100644 --- a/cloudkitty/cli/dbsync.py +++ b/cloudkitty/cli/dbsync.py @@ -60,7 +60,7 @@ class DBCommand(object): else: try: module = self.billing_models[name] - mod_migration = module.get_migrate() + mod_migration = module.get_migration() except IndexError: raise ModuleNotFound(name) return mod_migration @@ -70,7 +70,7 @@ class DBCommand(object): migrations = [] migrations.append(self.get_module_migration('cloudkitty')) for model in self.billing_models.values(): - migrations.append(model.get_migrate()) + migrations.append(model.get_migration()) else: return [self.get_module_migration(name)] return migrations