vendor/refinerycms/core/lib/tasks/refinery.rake in refinerycms-0.9.8.6 vs vendor/refinerycms/core/lib/tasks/refinery.rake in refinerycms-0.9.8.7

- old
+ new

@@ -85,9 +85,14 @@ desc "Update the core files with the gem" task :update => :environment do verbose = ENV["verbose"] || false require 'fileutils' + # Clean up mistakes + if (bad_migration = Rails.root.join('db', 'migrate', '20100913234704_add_cached_slug_to_pages.rb')).file? + FileUtils::rm bad_migration + end + # copy in any new migrations. FileUtils::cp Dir[Refinery.root.join("db", "migrate", "*.rb").cleanpath.to_s], Rails.root.join("db", "migrate").cleanpath.to_s, :verbose => verbose \ No newline at end of file