So here is the magic invocation for DBIx::Class::Schema::Loader which do create the relationships (if you use the right switch):
perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:./lib -e make_schema_at("New::Schema::Name", { relationships => 1 }, [ "dbi:Pg:dbname=foo","postgres" ])’
3 comments:
You talk mention SQLT in the text, but your code snippet is talking about DBIx::Class::Schema::Loader. These are two different (unrelated) things. Neither one uses the other.
I am just adding that clarification to the post. Thanks for pointing me that this can be confusing.
Thanks a lot!
Post a Comment