Fix migration!

This commit is contained in:
Mahad Kalam 2026-02-23 20:20:05 +00:00
parent 8c0227cb57
commit 64849e2656
3 changed files with 12 additions and 2 deletions

View file

@ -59,7 +59,7 @@ gem "query_count"
gem "rack-attack"
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"
gem "image_processing", "~> 1.2"
# Use dotenv for environment variables
gem "dotenv-rails"

View file

@ -222,6 +222,9 @@ GEM
http-form_data (2.3.0)
i18n (1.14.8)
concurrent-ruby (~> 1.0)
image_processing (1.14.0)
mini_magick (>= 4.9.5, < 6)
ruby-vips (>= 2.0.17, < 3)
importmap-rails (2.2.3)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
@ -281,6 +284,8 @@ GEM
marcel (1.1.0)
matrix (0.4.3)
memory_profiler (1.1.0)
mini_magick (5.3.1)
logger
mini_mime (1.1.5)
minitest (6.0.1)
prism (~> 1.5)
@ -483,6 +488,9 @@ GEM
rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30)
ruby-progressbar (1.13.0)
ruby-vips (2.3.0)
ffi (~> 1.12)
logger
ruby_identicon (0.0.6)
chunky_png (~> 1.4.0)
rubyzip (3.2.2)
@ -630,6 +638,7 @@ DEPENDENCIES
good_job
htmlcompressor (~> 0.4.0)
http
image_processing (~> 1.2)
importmap-rails
inertia_rails (~> 3.17)
jbuilder

View file

@ -8,7 +8,8 @@ class AddIndexOnHeartbeatsForMirrorReads < ActiveRecord::Migration[8.1]
[ :user_id, :source_type, :id ],
name: INDEX_NAME,
where: "(source_type = 0 AND deleted_at IS NULL)",
algorithm: :concurrently
algorithm: :concurrently,
if_not_exists: true
end
def down