Skip to content

Instantly share code, notes, and snippets.

@jcromartie
Created February 25, 2010 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcromartie/314809 to your computer and use it in GitHub Desktop.
Save jcromartie/314809 to your computer and use it in GitHub Desktop.
(defmodel message
:coll :messages
:fields {:msg [non-empty-str (partial truncate-str 140)]
:points [int :default 0]
:user_id [to-id required]
:venue_id [to-id]
:created [date :default current-date]
:updated [current-date]
:fb [str]
:tw [str]
:photo [str]
:status [str :default "published"]}
:validators [assoc-points])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment