db = 'db'; parent::init(); } public function safeUp() { /** Uncomment this block for detach model behaviors Event::on(::className(), ::EVENT_INIT, function(Event $event ){ $event->sender->detachBehavior('someBehaviorName'); }); **/ } public function safeDown() { //$this->truncateTable(' CASCADE'); //::deleteAll([]); } protected function stderr($message) { Console::output(Console::ansiFormat($message, [Console::FG_PURPLE])); } }