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

Ticket #11521 (new defect)

Opened 1 month ago

Invalid schema.rb generated with postgresql and the native xml type

Reported by: tonton Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: postgresql xml schema.rb
Cc:

Description

with the following migration :

create_table :test do |t|

t.column :xmlcolumn, :xml # you must use the old t.column ... syntax here

end

you get this in the schema.rb :

# Could not dump table "test" because of following StandardError # Unknown type 'xml' for column 'xmlcolumn'