Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Refile to ActiveStorage #40

Closed
jimmypoulsen opened this issue Sep 3, 2020 · 0 comments
Closed

Migrate from Refile to ActiveStorage #40

jimmypoulsen opened this issue Sep 3, 2020 · 0 comments

Comments

@jimmypoulsen
Copy link

Hi guys. We’re in the middle of migrating from Refile to ActiveStorage. We’ve been using Refile for the past 3-4 years now but recently decided to upgrade our Rails 5 application to Rails 6 and along comes ActiveStorage. Everything worked fine with Refile until we started to implement Action Mailbox which relies on ActiveStorage. To store the inbound emails we need to use the aws-sdk-s3 gem but when I run bundle install it can't find any compatible versions for aws-sdk-core:

Bundler could not find compatible versions for gem "aws-sdk-core":
  In snapshot (Gemfile.lock):
    aws-sdk-core (= 3.105.0)

  In Gemfile:
    refile-s3 was resolved to 0.2.0, which depends on
      aws-sdk (~> 2.0) was resolved to 2.0.1.pre, which depends on
        aws-sdk-resources (= 2.0.1.pre) was resolved to 2.0.1.pre, which depends on
          aws-sdk-core (= 2.0.1)

    aws-sdk-s3 was resolved to 1.79.1, which depends on
      aws-sdk-core (~> 3, >= 3.104.3)

Gemfile

gem 'refile', require: 'refile/rails', github: 'manfe/refile'
gem 'refile-memory'
gem 'refile-mini_magick'
gem 'refile-s3'

gem 'aws-sdk-s3', require: false

In order to migrate the data from Refile to ActiveStorage we need to have the two run alongside each other in the beginning.

Does anyone know what I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant