Invalid Configuration – yii\base\InvalidConfigException
The table does not exist: {{%active_record}}
I have got this problem, but when I select the ‘tag’ in the Table name of Gii form.
The database totally exist!
project=# \dt
public | category | table | pguser
public | migration | table | pguser
public | tag | table | pguser
public | user | table | pguser
public | video | table | pguser
Here the migration code:
$this->createTable('{{%tag}}', [
'id' => $this->primaryKey(),
'name' => $this->string()->notNull()->unique()
], $tableOptions
);
What can I do?