title: How to save dynamic number of images using carrierwave
body: <p>I'm using gem <code>Carrierwave</code> with <code>fog</code> to upload my images to <code>AWS S3</code>.</p>
  
  <p>Right now, I have static memories like this.</p>
  
  <pre><code>class CreateImagePosts &lt; ActiveRecord::Migration
    def change
      create_table :image_posts do |t|
        t.string :img1
        t.string :img2
        t.string :img3
        t.string :img4
        t.string :img5
        t.string :img6
        t.string :img7
        t.string :img8
  
        t.timestamps null: false
      end
    end
  end
  </code></pre>
  
  <p>But I want to make it possible to upload dynamic numbers of images not like present setting(limited in number of images).</p>
  
  <p>My model looks like this.</p>
  
  <pre><code>class ImagePost &lt; ActiveRecord::Base   
  
      mount_uploader :img1, S3uploaderUploader
      mount_uploader :img2, S3uploaderUploader
      mount_uploader :img3, S3uploaderUploader
      mount_uploader :img4, S3uploaderUploader
      mount_uploader :img5, S3uploaderUploader
      mount_uploader :img6, S3uploaderUploader
      mount_uploader :img7, S3uploaderUploader
      mount_uploader :img8, S3uploaderUploader
  
  end
  </code></pre>
  
  <p>Any suggestions or documents that I can read? Thanks.</p>