From b9f7ad2b2bec90bd7f981371914ad9cde6bd2783 Mon Sep 17 00:00:00 2001 From: chan Date: Thu, 26 Jun 2014 18:17:27 +0800 Subject: [PATCH] allow custom type use case: ```erlang -module(toto, [ Id ::pk(), Phone ::phone(), Caviar ::string() Status ::picklist() ]). ``` would like to extend type, from the source code i see: string, binary, uuid, date, datetime, integer, float, boolean, timestamp, atom i guess this small change will not affect existing code, perhaps some test case. --- src/boss_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boss_db.erl b/src/boss_db.erl index f13f9083..81cca208 100644 --- a/src/boss_db.erl +++ b/src/boss_db.erl @@ -521,7 +521,7 @@ validate_record_types(Record) -> {Data, atom} when is_atom(Data) -> true; {_Data, Type} -> - false + true end, if GreatSuccess ->