[Dbix-class] Rename relationship

Matt S Trout dbix-class at trout.me.uk
Mon Jan 28 16:10:04 GMT 2008


On Sat, Jan 26, 2008 at 07:28:00PM +0100, Moritz Onken wrote:
> Hi,
> 
> I create my schemas with the catalyst helper  
> Catalyst::Helper::Model::DBIC::Schema. It creates all my relations  
> correct but with pretty ugly names. I'd like to change them but don't  
> want to remove the relations in the DBMS.
> 
> Is there any easy way to achieve that?

create=*, as documented, uses DBIx::Class::Schema::Loader.

Go read the docs for it and post the solution once you've worked it out.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list