Skip to content

Commit

Permalink
Fix for api breaking changes as return values from create table chang…
Browse files Browse the repository at this point in the history
…ed from created to tables_created
  • Loading branch information
Gesias committed Feb 11, 2015
1 parent af0a6d9 commit e1cfe95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remodel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_tables():

for model_cls in model_registry.all().values():
result = r.table_create(model_cls._table).run()
if result['created'] != 1:
if result['tables_created'] != 1:
raise RuntimeError('Could not create table %s for model %s' % (
model_cls._table, model_cls.__name__))

Expand Down

0 comments on commit e1cfe95

Please sign in to comment.