Skip to content

Instantly share code, notes, and snippets.

@perlpilot
Last active December 15, 2016 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlpilot/daca8f1ba7b0c0fb2b587fb34e7f7d7a to your computer and use it in GitHub Desktop.
Save perlpilot/daca8f1ba7b0c0fb2b587fb34e7f7d7a to your computer and use it in GitHub Desktop.
package MyApp::Schema::Result::BaseTable;
use base qw/DBIx::Class::Core/;
# ... column definitions here ...
package MyApp::Schema::Result::Table1;
use base qw/MyApp::Schema::Result::BaseTable/;
__PACKAGE__->table("table1");
package MyApp::Schema::Result::Table2;
use base qw/MyApp::Schema::Result::BaseTable/;
__PACKAGE__->table("table2");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment