이 문제는 screened_ip_addresses 테이블의 last_match_at 값이 손상된 것이 원인인 것으로 보입니다.
Rails 콘솔(./launcher enter app 후 rails c)에서 다음을 실행하여 수정할 수 있습니다:
# 먼저, 문제가 있는 레코드를 찾습니다
ScreenedIpAddress.where("last_match_at < '0001-01-01'").each do |sip|
puts "ID: #{sip.id}, IP: #{sip.ip_address}, last_match_at: #{sip.last_match_at}"
end
# 그런 다음 삭제하거나
ScreenedIpAddress.where("last_match_at < '0001-01-01'").destroy_all
# 또는 타임스탬프를 `NULL`로 수정합니다 (이 경우 정리 로직에 `created_at`이 사용됨)
ScreenedIpAddress.where("last_match_at < '0001-01-01'").update_all(last_match_at: nil)