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.

Changeset [5b95730edc33ee97f53da26a3868eb983305a771] by Emili Parreno

Revision 5b95730edc33ee97f53da26a3868eb983305a771, committed by Emili Parreno · May 8th, 2010 @ 12:39 PM

Add index length support for MySQL [#1852 state:resolved]

Example:

add_index(:accounts, :name, :name => 'by_name', :length => 10) => CREATE INDEX by_name ON accounts(name(10))

add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15}) => CREATE INDEX by_name_surname ON accounts(name(10), surname(15))

Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/5b95730edc33ee97f53da26a3868eb...

7 changed files

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
  • M activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
  • M activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
  • M activerecord/lib/active_record/schema_dumper.rb
  • M activerecord/test/cases/active_schema_test_mysql.rb
  • M activerecord/test/cases/migration_test.rb