The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package A::Schema::Result::Album;

use DBIx::Class::Candy -base => 'A::Schema::Result';

table 'albums';

primary_column id => {
   data_type => 'int',
   is_auto_increment => 1,
   is_numeric => 1,
};

has_column name => (
   data_type => 'varchar',
   size => 25,
   is_nullable => 1,
);

column artist_id => {
   data_type => 'int',
   is_nullable => 0,
};

has_many songs => 'A::Schema::Result::Song', 'album_id';

sub test_strict {
   require Test::More;
   eval '$foo = 1';
   Test::More::ok($@, 'strict mode is on');
}

1;