Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] PostgreSQL CAST Problem on Defaultvalues

#3899

Hi

i have a problem with PostgreSQL. PostgreSQL can cast default values and AR read the default string with cast into schema.rb.

sample:

CREATE TABLE soeintest
( test character varying NOT NULL DEFAULT '456' );

on db:

CREATE TABLE soeintest
( test character varying NOT NULL DEFAULT '456'::character varying );

in schema:

t.string "test", :default => "'456'::character varying", :null => false

I have fix this Problem by change the SQL that read the data.

Reported by Traxanos · February 8th, 2010 @ 11:46 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to Low

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 03:13 AM

  2. Andrea Campi
    Andrea Campi
    • Tag changed from activerecord, fix, patch, patched, postgres, postgresql, schema to activerecord, fix, patch, postgres, postgresql, schema

    bulk tags cleanup

    October 11th, 2010 @ 07:21 AM