Hi Marc,
If you require open uri you can set paperclip attachments to a url. This
lets you do...
def map {
new_paperclip_avatar: old_attachment.url,
...
}
or something similar. I've done this with trucker migrations in the past,
so let me know if you need any more help.
Thanks,
Bradly
On Mon, Jul 22, 2013 at 1:47 PM, Marc Leglise <[email protected]> wrote:
> Thanks Patrick. I found Giles' Rails31 branch and I'm digging through it
> now. Any idea how well this works with Paperclip attachments?
>
> -Marc
>
>
> On Mon, Jul 22, 2013 at 11:04 AM, Patrick Crowley <[email protected]>wrote:
>
>> Hey, Marc.
>>
>> Trucker might still be a good option for you.
>>
>> While the original repo is dated, Giles Bowkett updated Trucker to work
>> with Rails 3:
>> https://github.com/gilesbowkett/trucker
>>
>> I used it a few months ago to port some legacy data and it still worked
>> great.
>>
>> Cheers,
>> Patrick
>>
>>
>>
>> On Jul 22, 2013, at 7:54 pm, Marc Leglise <[email protected]> wrote:
>>
>> > Hi Ylan, it looks like this tool is meant to copy full table data. I
>> don't see any mechanisms for transforming the data during import. Any other
>> ideas?
>> >
>> >
>> > On Thu, Jul 18, 2013 at 3:51 PM, Ylan Segal <[email protected]>
>> wrote:
>> > I think you can use taps for this:
>> >
>> > https://github.com/ricardochimal/taps
>> >
>> > If I am not mistaken, it is used by the heroku client.
>> >
>> > --
>> > Ylan Segal
>> > [email protected]
>> >
>> >
>> > On Thursday, July 18, 2013 at 3:46 PM, Marc Leglise wrote:
>> >
>> > > Hi all,
>> > >
>> > > Years ago, I heard Patrick talk about his Trucker gem for importing
>> legacy data into a new Rails project. The Github repo looks to be inactive,
>> so I wanted to ask the community, are there any tools out there that you
>> like using for this sort of task? I've got a legacy DB, full of data, which
>> needs to be imported (and massaged) into a set of new Rails models. Any
>> advice is welcome.
>> > >
>> > > https://github.com/mokolabs/trucker
>> > >
>> > > -Marc
>> > >
>> > > --
>> > > --
>> > > SD Ruby mailing list
>> > > [email protected] (mailto:[email protected])
>> > > http://groups.google.com/group/sdruby
>> > > ---
>> > > You received this message because you are subscribed to the Google
>> Groups "SD Ruby" group.
>> > > To unsubscribe from this group and stop receiving emails from it,
>> send an email to [email protected] (mailto:
>> [email protected]).
>> > > For more options, visit https://groups.google.com/groups/opt_out.
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > --
>> > SD Ruby mailing list
>> > [email protected]
>> > http://groups.google.com/group/sdruby
>> > ---
>> > You received this message because you are subscribed to the Google
>> Groups "SD Ruby" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to [email protected].
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>> >
>> >
>> > --
>> > --
>> > SD Ruby mailing list
>> > [email protected]
>> > http://groups.google.com/group/sdruby
>> > ---
>> > You received this message because you are subscribed to the Google
>> Groups "SD Ruby" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to [email protected].
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> --
>> SD Ruby mailing list
>> [email protected]
>> http://groups.google.com/group/sdruby
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "SD Ruby" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
> --
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
> ---
> You received this message because you are subscribed to the Google Groups
> "SD Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.