Added add_columns documentation about controlling float precision
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource.pm
index 4b8f1dd..c88361f 100644 (file)
@@ -211,6 +211,12 @@ The length of your column, if it is a column type that can have a size
 restriction. This is currently only used to create tables from your
 schema, see L<DBIx::Class::Schema/deploy>.
 
+   { size => [ 9, 6 ] }
+
+For decimal or float values you can specify an ArrayRef in order to
+control precision, assuming your database's
+L<SQL::Translator::Producer> supports it.
+
 =item is_nullable
 
    { is_nullable => 1 }