class CreateMessages < ActiveRecord::Migration def change create_table :messages do |t| t.string :message_type t.string :status t.string :dispatch_to t.boolean :is_error t.text :content t.timestamps end add_index :messages, :message_type add_index :messages, :is_error end end