🚑

pull/773/head
Rick Carlino 2018-04-04 14:01:45 -05:00
parent 3702ee87ef
commit 3b1ce9828c
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class Device < ApplicationRecord
logs
.order(created_at: :desc)
.offset((max_log_count || DEFAULT_MAX_LOGS) * multiplier)
.delete_all
.destroy_all
end
def self.current

View File

@ -1,7 +1,7 @@
class MigrateAwayFromMetaColumn < ActiveRecord::Migration[5.1]
def up
Device.all.map do |d|
d.trim_log_list!(5)
d.trim_log_list!(2)
end
end