1

In my team development environment, we are using sqlite3 which comes default in Rails.

However, carrierwave's implementation of multi files upload require database that supports array/json datatype.

Are there any workaround so that it will work on our development environment without installing other database such as postgres?

I'm following the instructions over here https://github.com/carrierwaveuploader/carrierwave#multiple-file-uploads

1 Answer 1

2

The only possible workaround would be to create a separate model for the uploads:

class ImagesContainer
  has_many :uploads
end

class Upload
  mount_uploader :image, ImageUploader

  belongs_to ImagesContainer
end
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.