public function safeDown() { // drop tables in reverse order (for foreign key constraints) $this->dropTable(Profile::tableName()); $this->dropTable(UserKey::tableName()); $this->dropTable(User::tableName()); $this->dropTable(Role::tableName()); }