create_table is broken for jdbc postgres
----------------------------------------
Key: JRUBY-3400
URL: http://jira.codehaus.org/browse/JRUBY-3400
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: ActiveRecord-JDBC-0.9.1
Environment: ubuntu
java 6
Reporter: Ryan Bell
This appears to be broken on trunk. Calling create_table seems to append limit
attributes. For example:
{quote}
create_table :codes do |t|
t.string :code_name, :limit => 50
t.string :the_code, :limit => 20
t.string :code_description, :limit => 100
end
{quote}
produces:
{quote}
CREATE TABLE codes ("id" serial primary key, "code_name" varchar(50) DEFAULT
NULL, "the_code" varchar(50)(20) DEFAULT NULL, "code_description"
varchar(50)(20)(100) DEFAULT NULL)
{quote}
If I get a chance to investigate further, I'll provide updates.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email