klen / peewee_migrate

Simple migration engine for Peewee

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not create abstract models

Behoston opened this issue · comments

I have so-called base model for easy db linking:

class Model(peewee.Model):
    class Meta:
        abstract = True
        database = db

Creating migrations produces:

    @migrator.create_model
    class Model(pw.Model):
        id = pw.AutoField()

        class Meta:
            table_name = "model"

Peewee Model Metadata doesn't have such attribute as 'abstract'. You may use migrations ignore option.

Sorry for reopening this, but where exactly do I pass the ignore option and what is the format? I can not find anything in the documentation (the readme)
Thanks