Commit c49024bf7b4ae31a14b7c908a86fb0782bfca178
1 parent
6bfc511e
Exists in
master
and in
1 other branch
No need to check for presence in "extract backtraces" migration
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20121003223358_extract_backtraces.rb
@@ -2,7 +2,7 @@ class ExtractBacktraces < Mongoid::Migration | @@ -2,7 +2,7 @@ class ExtractBacktraces < Mongoid::Migration | ||
2 | def self.up | 2 | def self.up |
3 | say "It could take long time (hours if you have many Notices)" | 3 | say "It could take long time (hours if you have many Notices)" |
4 | Notice.unscoped.all.each do |notice| | 4 | Notice.unscoped.all.each do |notice| |
5 | - backtrace = Backtrace.find_or_create(:raw => notice['backtrace'].presence || []) | 5 | + backtrace = Backtrace.find_or_create(:raw => notice['backtrace'] || []) |
6 | notice.backtrace = backtrace | 6 | notice.backtrace = backtrace |
7 | notice['backtrace'] = nil | 7 | notice['backtrace'] = nil |
8 | notice.save! | 8 | notice.save! |