$this->createIndex('level','{{%user}}','level', true);
$this->addForeignKey("ranks_fk", "{{%user}}", "level", "{{%ranks}}", "level", 'CASCADE');
'level' => Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 1',
'level' => Schema::TYPE_PK . ' NOT NULL AUTO_INCREMENT',
$this->addForeignKey("ranks_fk", "{{%ranks}}", "level", "{{%user}}", "level", 'RESTRICT');