Les rails ajoutent l'index de la console
ActiveRecord::Migration.add_column :table_name, :field_name, :field_type
Worrisome Wombat
ActiveRecord::Migration.add_column :table_name, :field_name, :field_type