If I\'m adding a column via MySQL, I can specify where in the table that column will be using the AFTER modifier. But if I do the add_column via a Rails migration, the colum
Sure you can.
Short answer:
add_column :users, :gender, :string, :after => :column_name
Long answer:
Here is an example, let's say you want to add a column called "gender" after column "username" to "users" table.
rails g migration AddGenderToUser gender:stringAdd "after => :username" in migration that was created so it looks like this:
class AddSlugToDictionary < ActiveRecord::Migration
def change
add_column :users, :gender, :string, :after => :username
end
end