Commit 9fc00605520c27203c4c78a76c7751cf0c0dc063
1 parent
db3fc552
Exists in
master
and in
1 other branch
remove migration that is not needed anymore
Showing
1 changed file
with
0 additions
and
18 deletions
Show diff stats
db/migrate/20111019064503_cache_problem_statistics.rb
... | ... | @@ -1,18 +0,0 @@ |
1 | -class CacheProblemStatistics < Mongoid::Migration | |
2 | - def self.up | |
3 | - Problem.all.each do |problem| | |
4 | - problem.notices.each do |notice| | |
5 | - problem.messages << notice.message | |
6 | - problem.hosts << notice.host | |
7 | - problem.user_agents << notice.user_agent_string | |
8 | - end | |
9 | - problem.save! | |
10 | - end | |
11 | - end | |
12 | - | |
13 | - def self.down | |
14 | - Problem.all.each do |problem| | |
15 | - problem.update_attributes(:messages => [], :hosts => [], :user_agents => []) | |
16 | - end | |
17 | - end | |
18 | -end | |
19 | 0 | \ No newline at end of file |