title: why active storage record id is null and upload too slow
body: <p>I am using latest rails and ruby for a new project, I am using <code>Active Storage</code> for upload files ( images and videos ) to <code>GCP</code>, 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 <code>record_id</code> is <code>0</code> ? is there something wrong?</p>
  
  <pre><code>class Gallery &lt; ApplicationRecord
    has_many_attached :files
  end
  </code></pre>
  
  <p>my gallery id is UUID for the primary key
  is this caused by this? 
  because on their documentations said</p>
  
  <pre><code>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.
  </code></pre>