public function deleteModel() { if ($this->isApplied()) { throw new ApplicationException(Lang::get('rainlab.builder::lang.migration.error_cant_delete_applied')); } $this->deleteVersion(); $this->removeScriptFile(); }