This project is archived and is in readonly mode.

#420 ✓resolved
Tarmo Tänav

Interpret :limit as number of bytes

Reported by Tarmo Tänav | June 15th, 2008 @ 04:03 AM | in 2.1.1

I've updated the patch originally from http://dev.rubyonrails.org/ticke...

Integer limits are now treated as the number of bytes for both mysql and postgresql (and sqlite, as they always were). And schema dumping also calculates the closest matching number of bytes for the types so bigint will be properly dumped as integer with a limit of 8.

Comments and changes to this ticket

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>

Attachments

Pages