Since Rails> = 4.0 adds support for PostgreSQL array data types, I was wondering if someone had already played with carrierwave attached to array attributes instead of join tables when the model should have multiple attachments.
What I meant is something like
class AddPicturesToUser < ActiveRecord::Migration def change add_column :users, :pictures, :text, array: true end end class User < ActiveRecord::Base mount_uploader :pictures, PictureUploader, array: true end
postgresql ruby-on-rails-4 carrierwave
pex
source share