[Dbix-class] Dumping fixtures and loading in test script

Rob Kinyon rob.kinyon at gmail.com
Mon Nov 11 16:05:24 GMT 2013


On Mon, Nov 11, 2013 at 10:48 AM, Adam Witney <awitney at sgul.ac.uk> wrote:
>
> Thanks again for your email Rob,
>
> Just to clarify from looking at the docs again, I would have to edit all my
> Result classes to add sim information, right? Wouldn't this break every time
> I refreshed the schema from the database (./script/xxx_create.pl model DB
> ... etc)?

This is correct, assuming you're refreshing your schema from your
database. I would **STRONGLY** urge you to never do this. Your schema
files should be considered the source of truth, not your database.

Rob



More information about the DBIx-Class mailing list