On Jul 26, 2011, at 1:50 AM, Tarantoga wrote: > Does anyone know how to create an autoincrementing ID field for a > table schema on Heroku?
In the schema for the table, define an id field like this: [:id :serial "PRIMARY KEY"] > It uses PostgreSQL and a common way for this DB is to create a > sequence and then take default ID's from this sequence. But I haven't > found a way to do something like that. > > I know that rails migrations do something similar but don't know how. > Are there any ideas? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en