Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Jruby 1.1.5, MySQL
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
When we use direct type specification in migrations, error triggered during migration in type_to_sql function. Testcase:
create_table :tests do |t|
t.integer :test
end
change_column :tests, :test, 'integer unsigned'
For fix this problem this function should be ported from new rails (f.e. attached patch change this function to Rails's 2.1.2 version)
Fixed in http://github.com/nicksieger/activerecord-jdbc-adapter/commit/6e48f26493809e5b91588b1f6e0213e0395b3e8b