lib/goaloc/model.rb in mattknox-goaloc-0.2.5 vs lib/goaloc/model.rb in mattknox-goaloc-0.2.6

- old
+ new

@@ -10,14 +10,15 @@ x end end def Model.db_type_map - { + { # definitely have to add high-level datatypes. "str" => "string", "string" => "string", "s" => "string", "int" => "integer", "integer" => "integer", "i" => "integer", "bool" => "boolean", "boolean" => "boolean", "b" => "boolean", - "text" => "text", "t" => "text" + "text" => "text", "t" => "text", + "email" => "string", "url" => "string" } end def Model.make_model_class(name) # routes is the set of urls by which you can get to an instance of a class