diff options
Diffstat (limited to 't/lib/RTest/TestDB/Baz.pm')
-rw-r--r-- | t/lib/RTest/TestDB/Baz.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/lib/RTest/TestDB/Baz.pm b/t/lib/RTest/TestDB/Baz.pm index 14bbfaa..8ea0c51 100644 --- a/t/lib/RTest/TestDB/Baz.pm +++ b/t/lib/RTest/TestDB/Baz.pm @@ -4,11 +4,12 @@ package # hide from PAUSE use Moose; extends 'DBIx::Class::Core'; -use MooseX::Types::Moose qw/ArrayRef Int Bool/; +use MooseX::Types::Moose qw/ArrayRef Int Bool Str/; use MooseX::Types::Common::String qw/NonEmptySimpleStr/; has 'id' => (isa => Int, is => 'ro', required => 1); has 'name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1); +has 'description' => (isa => Str, is => 'rw',); has 'bool_field' => (isa => Bool, is => 'rw', required => 0); has 'foo_list' => ( isa => ArrayRef, @@ -27,6 +28,7 @@ __PACKAGE__->table('baz'); __PACKAGE__->add_columns( id => { data_type => 'integer', size => 16, is_auto_increment => 1 }, name => { data_type => 'varchar', size => 255 }, + description => { data_type => 'text', is_nullable => 1 }, bool_field => { data_type => 'char', size => '1', |