What Bradly said… and, if your Paperclip models haven't changed, you can just 
do a straight import and it should work fine.

def map
  {
  :stencil_file_name => self.stencil_file_name,
  :stencil_content_type => self.stencil_content_type,
  :stencil_file_size => self.stencil_file_size
  }
end

-- Patrick


On Jul 22, 2013, at 10: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.


Reply via email to