I am using latest rails and ruby for a new project, I am using Active Storage for upload files ( images and videos ) to GCP, when I upload multiples files about 13-18 images, it takes too long to upload and when I check on my database after it finished, my record_id is 0 ? is there something wrong?
class Gallery < ApplicationRecord
has_many_attached :files
end
my gallery id is UUID for the primary key is this caused by this? because on their documentations said
If you are using UUIDs instead of integers as the primary key on your models
you will need to change the column type of "record_id"
for the active_storage_attachments table in the generated migration accordingly.