diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-02-25 20:00:44 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-02-25 20:00:44 +0000 |
commit | c2f0e9e9cd2b23f8f7d700a5307b559e1ce70cc0 (patch) | |
tree | b27d6757c4a5df82ca338cbc3211cf315c7fcd32 /t/lib/RTest/TestDB/Baz.pm | |
parent | 642eb116a980729b37cb409094a94f9f6f39458c (diff) | |
download | reaction-c2f0e9e9cd2b23f8f7d700a5307b559e1ce70cc0.tar.gz reaction-c2f0e9e9cd2b23f8f7d700a5307b559e1ce70cc0.zip |
failing test case for Bool field
Diffstat (limited to 't/lib/RTest/TestDB/Baz.pm')
-rw-r--r-- | t/lib/RTest/TestDB/Baz.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/lib/RTest/TestDB/Baz.pm b/t/lib/RTest/TestDB/Baz.pm index 33e5e6c..14bbfaa 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/; +use MooseX::Types::Moose qw/ArrayRef Int Bool/; use MooseX::Types::Common::String qw/NonEmptySimpleStr/; has 'id' => (isa => Int, is => 'ro', required => 1); has 'name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1); +has 'bool_field' => (isa => Bool, is => 'rw', required => 0); has 'foo_list' => ( isa => ArrayRef, is => 'rw', @@ -26,6 +27,11 @@ __PACKAGE__->table('baz'); __PACKAGE__->add_columns( id => { data_type => 'integer', size => 16, is_auto_increment => 1 }, name => { data_type => 'varchar', size => 255 }, + bool_field => { + data_type => 'char', + size => '1', + is_nullable => '1' + } ); __PACKAGE__->set_primary_key('id'); |