This project is archived and is in readonly mode.
Remove default t.integer ... :limit => 11 from schema.rb
Reported by Anderson Dias | July 16th, 2008 @ 09:19 PM | in 2.x
When using rake:migrate the schema.rb assumes for any case of integer :limit = nil a :limit => 11 default value and in this case my schemas from development and test db are different. This difference makes the int(11) columns be bigint(11) columns in the test db and this will deny the foreign key creation.
Comments and changes to this ticket
-
Tarmo Tänav September 18th, 2008 @ 07:22 AM
- State changed from new to resolved
- Tag changed from 2.1, activerecord, bug, rake to 2.1, activerecord, bug, rake
Limit 11 is already interpreted as display width for mysql in 2.1.1 and edge and in both cases :limit => 11 shouldn't even be dumped to schema.rb any more, this should solve the issue.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>