Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3278 (closed enhancement: invalid)

Opened 3 years ago

Last modified 3 years ago

PostgreSQLColumn

Reported by: meadow.nnick@gmail.com Assigned to: Jeremy Kemper <rails@bitsweat.net>
Priority: normal Milestone: 1.1
Component: ActiveRecord Version: 1.0.0
Severity: normal Keywords: postgresql
Cc:

Description

Proposed patch adds PostgreSQLColumn < Column class, and has some workarounds and fixes:

1. recognition of arrays

2. resolution of field length using PostgreSQL specific features (typmod)

3. recognises domains as base types

4. default now() is evaluated by request, and not once on column load

4. kludge: default now() dumped in db_schema_dump as "now()", that works not correctly, but makes it easier to locate (grep 'default => "now()"' schema.rb)

5. fix for PostgreSQLAdapter#tables method - correctly uses schema names.

6. private methods default_value, translate_field_type moved to PostgreSQLColumn

Related tickets: #3277, #3272, #3232, #2257

Attachments

postgresql-column.patch (7.1 kB) - added by meadow.nnick@gmail.com on 12/19/05 13:38:55.

Change History

12/19/05 13:38:55 changed by meadow.nnick@gmail.com

  • attachment postgresql-column.patch added.

12/19/05 14:48:03 changed by bitsweat

  • keywords set to postgresql.
  • owner changed from David to bitsweat.
  • milestone set to 1.1.

Thanks meadow.nnick.

02/27/06 10:05:10 changed by meadow.nnick@gmail.com

  • status changed from new to closed.
  • resolution set to invalid.