Skip to content
代码片段 群组 项目
提交 347d3aae 编辑于 作者: Terri Chu's avatar Terri Chu
浏览文件

DeleteObsoleteAdvancedSearchMigrations ignore missing spec files

上级 d0563a27
No related branches found
No related tags found
无相关合并请求
...@@ -107,8 +107,10 @@ def create_remove_obsolete_change ...@@ -107,8 +107,10 @@ def create_remove_obsolete_change
FileUtils.rm_f(migration_data[:file]) FileUtils.rm_f(migration_data[:file])
change.changed_files << migration_data[:file] change.changed_files << migration_data[:file]
FileUtils.rm_f(migration_data[:spec_file]) if File.exist?(migration_data[:spec_file])
change.changed_files << migration_data[:spec_file] FileUtils.rm_f(migration_data[:spec_file])
change.changed_files << migration_data[:spec_file]
end
rescue StandardError => e rescue StandardError => e
warn "Error deleting #{version} migration and spec: #{e}" warn "Error deleting #{version} migration and spec: #{e}"
nil nil
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册