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 [e55284e8256461fc2440c41548ee9b4216f96b47] by Ben Marini

Revision e55284e8256461fc2440c41548ee9b4216f96b47, committed by Ben Marini · December 4th, 2009 @ 07:09 AM

Add support for Mysql column positioning via #add_column and #change_column

add_column and change_column in the Mysql adapter now accept some
additional options:
:first => true # Put the column in front of all the columns :after => column_name # Put the colmn after 'column_name'

add_column :new_col, :string, :first => true
add_column :another_col, :integer, :default => 0, :after => :new_col

[#3286 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/e55284e8256461fc2440c41548ee9b...

3 changed files

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
  • M activerecord/test/cases/migration_test.rb