diff options
author | Ben Marini <bmarini@gmail.com> | 2009-09-27 16:25:18 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-12-03 23:09:57 -0800 |
commit | e55284e8256461fc2440c41548ee9b4216f96b47 (patch) | |
tree | 1f70159ca25b71e1893adbfe55fdb8a327ca2842 /activerecord/RUNNING_UNIT_TESTS | |
parent | 96e0638ce2a287eb5c43266fb4eb3e656e9968cf (diff) | |
download | rails-e55284e8256461fc2440c41548ee9b4216f96b47.tar.gz rails-e55284e8256461fc2440c41548ee9b4216f96b47.tar.bz2 rails-e55284e8256461fc2440c41548ee9b4216f96b47.zip |
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>
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS')
0 files changed, 0 insertions, 0 deletions