diff --git a/.app_version b/.app_version
index f40ecd0d..0f1a7dfc 100644
--- a/.app_version
+++ b/.app_version
@@ -1 +1 @@
-0.36.5
+0.37.0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 423c98c7..fe29bbb3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
-# [0.36.5] - Unreleased
+# [0.37.0] - 2025-12-30
## Added
diff --git a/app/views/users/digests_mailer/year_end_digest.html.erb b/app/views/users/digests_mailer/year_end_digest.html.erb
index 65959397..66a6f4d5 100644
--- a/app/views/users/digests_mailer/year_end_digest.html.erb
+++ b/app/views/users/digests_mailer/year_end_digest.html.erb
@@ -168,7 +168,7 @@
- Hi, this is Evgenii from Dawarich! Pretty wild journey last yeah, huh? Let's take a look back at all the places you explored in <%= @digest.year %>.
+ Hi, this is Evgenii from Dawarich! Pretty wild journey last year, huh? Let's take a look back at all the places you explored in <%= @digest.year %>.
diff --git a/db/migrate/20251208210410_add_composite_index_to_stats.rb b/db/migrate/20251208210410_add_composite_index_to_stats.rb
index cf3dcf0e..21ca64d7 100644
--- a/db/migrate/20251208210410_add_composite_index_to_stats.rb
+++ b/db/migrate/20251208210410_add_composite_index_to_stats.rb
@@ -27,15 +27,19 @@ class AddCompositeIndexToStats < ActiveRecord::Migration[8.0]
deleted_count = 0
loop do
batch_deleted = execute(<<-SQL.squish).cmd_tuples
- DELETE FROM stats s1
- WHERE EXISTS (
- SELECT 1 FROM stats s2
- WHERE s2.user_id = s1.user_id
- AND s2.year = s1.year
- AND s2.month = s1.month
- AND s2.id > s1.id
+ DELETE FROM stats
+ WHERE id IN (
+ SELECT s1.id
+ FROM stats s1
+ WHERE EXISTS (
+ SELECT 1 FROM stats s2
+ WHERE s2.user_id = s1.user_id
+ AND s2.year = s1.year
+ AND s2.month = s1.month
+ AND s2.id > s1.id
+ )
+ LIMIT #{BATCH_SIZE}
)
- LIMIT #{BATCH_SIZE}
SQL
break if batch_deleted.zero?
diff --git a/db/migrate/20251210193532_add_verified_at_to_points_raw_data_archives.rb b/db/migrate/20251210193532_add_verified_at_to_points_raw_data_archives.rb
index face565d..4f8b8366 100644
--- a/db/migrate/20251210193532_add_verified_at_to_points_raw_data_archives.rb
+++ b/db/migrate/20251210193532_add_verified_at_to_points_raw_data_archives.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class AddVerifiedAtToPointsRawDataArchives < ActiveRecord::Migration[8.0]
def change
add_column :points_raw_data_archives, :verified_at, :datetime