class CreateMessageRoutes < ActiveRecord::Migration def change create_table :message_routes do |t| t.integer :message_type_id t.string :incoming_status t.string :dispatch_to t.timestamps end add_index :message_routes, [ :message_type_id, :incoming_status ], :name => :ebus_msgroutes_type_status end end