This project is archived and is in readonly mode.
Changeset [ccb197b2e6c2e773f908d3b00f5debe57c22311a] 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...
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>