String migrationPath = yiiProtected.replace(_project.getBasePath(), "").replace("\\", "/");
VirtualFile baseDir = _project.getBaseDir();
if (baseDir != null) {
VirtualFile migrationsFolder = baseDir.findFileByRelativePath(migrationPath + "migrations/");
if (migrationsFolder != null) {
migrationsFolder.refresh(false, true);
VirtualFile migrationFile = migrationsFolder.findFileByRelativePath(name + ".php"); //migrationPath + "migrations/" +
if (migrationFile != null) {
OpenFileDescriptor of = new OpenFileDescriptor(_project, migrationFile);
if (of.canNavigate()) {
of.navigate(true);