A couple of things.  I'm looking for a way to create a timestamp field that 
has a default expression of *now().*  

Documentation shows the following, whose first field is tripping:

*DL.create_table(:bubbbles) do*
*  column :a1, :string                #    error below*
*  column :a2, String          *
*  column :a3, 'string'        *
*  column :a4, :datetime   *
*  column :a5, DateTime    *
*  column :a6, 'timestamp(6)' *
*end*

*PG::UndefinedObject: ERROR:  type "string" does not exist 
(Sequel::DatabaseError)*
*LINE 1: CREATE TABLE "bubbbles" ("a1" string, "a2" text, "a3" string...*

I guess the docs have a slight error.  Second, how can I get that field to 
take that expression as the default?

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/6bd80d9e-963d-4d3a-a11c-a6633801a7f7n%40googlegroups.com.

Reply via email to