Re: Question about NOT NULL and default values. - Mailing list pgsql-general

From Tim Uckun
Subject Re: Question about NOT NULL and default values.
Date
Msg-id 855e4dcf0810162026j1e3d47b6n5f7b4500e90a615c@mail.gmail.com
Whole thread Raw
In response to Re: Question about NOT NULL and default values.  (Chris <dmagick@gmail.com>)
Responses Re: Question about NOT NULL and default values.  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
> Not sure how you do this in rails but if you use DEFAULT in the query it
> works:
>
>> create table a(a int default 5);
> CREATE TABLE
>
>> insert into a(a) values (DEFAULT);
> INSERT 0 1

Unfortunately the SQL is being generated by the ORM.  I really don't
want to bypass the ORM that would be way too painful.

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Question about NOT NULL and default values.
Next
From: Mike Christensen
Date:
Subject: Question about fulltext search and to_tsvector function