This project is archived and is in readonly mode.

Changeset [e55284e8256461fc2440c41548ee9b4216f96b47] 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...

Committed by Ben Marini

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

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>