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

Revision ccb197b2e6c2e773f908d3b00f5debe57c22311a, committed by Ben Marini · December 4th, 2009 @ 07:10 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/ccb197b2e6c2e773f908d3b00f5deb...

3 changed files

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