Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Remove default t.integer ... :limit => 11 from schema.rb

#636

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.

Reported by Anderson Dias · July 16th, 2008 @ 09:19 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Jacek Becela
    Jacek Becela

    I would happily +1 a patch.

    July 16th, 2008 @ 10:27 PM

  2. Tarmo Tänav
    Tarmo Tänav
    • 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.

    September 18th, 2008 @ 07:22 AM

  3. Anderson Dias
    Anderson Dias

    Tks Tarmo, I'll try it soon.

    September 18th, 2008 @ 02:06 PM