From 9fc00605520c27203c4c78a76c7751cf0c0dc063 Mon Sep 17 00:00:00 2001 From: Marcin Ciunelis Date: Thu, 3 Nov 2011 00:11:12 +0100 Subject: [PATCH] remove migration that is not needed anymore --- db/migrate/20111019064503_cache_problem_statistics.rb | 18 ------------------ 1 file changed, 0 insertions(+), 18 deletions(-) delete mode 100644 db/migrate/20111019064503_cache_problem_statistics.rb diff --git a/db/migrate/20111019064503_cache_problem_statistics.rb b/db/migrate/20111019064503_cache_problem_statistics.rb deleted file mode 100644 index 515db58..0000000 --- a/db/migrate/20111019064503_cache_problem_statistics.rb +++ /dev/null @@ -1,18 +0,0 @@ -class CacheProblemStatistics < Mongoid::Migration - def self.up - Problem.all.each do |problem| - problem.notices.each do |notice| - problem.messages << notice.message - problem.hosts << notice.host - problem.user_agents << notice.user_agent_string - end - problem.save! - end - end - - def self.down - Problem.all.each do |problem| - problem.update_attributes(:messages => [], :hosts => [], :user_agents => []) - end - end -end \ No newline at end of file -- libgit2 0.21.2