Displaying 1 result from an estimated 1 matches for "limit1024".
2008 Nov 25
1
migration error, mysql, change column limit
...=> 2048
end
def self.down
change_column :requests, :params, :string, :limit => 1024
end
end
Up works fine. Down tells me:
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ''limit1024 DEFAULT NULL'' at line 1: ALTER TABLE `requests`
CHANGE `params` `params` limit1024 DEFAULT NULL
Why is it messing up the SQL on ''down'', but not ''up''? Very weird.
Anyone have any ideas?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~---...