Fix view ordering by requiring ddo declaration in result class
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / CafeInsertion / Result / Cream.pm
diff --git a/t/lib/CafeInsertion/Result/Cream.pm b/t/lib/CafeInsertion/Result/Cream.pm
new file mode 100644 (file)
index 0000000..93efeb1
--- /dev/null
@@ -0,0 +1,20 @@
+package    # hide from PAUSE
+    CafeInsertion::Result::Cream;
+
+use strict;
+use warnings;
+use parent 'DBIx::Class::Core';
+
+__PACKAGE__->table('cream');
+
+__PACKAGE__->add_columns(
+    id => {
+        data_type         => 'integer',
+        is_auto_increment => 1,
+    },
+    fat_free => { data_type => 'boolean', default => 0 }
+);
+
+__PACKAGE__->set_primary_key('id');
+
+1;