class CreateDunlopLogEntries < ActiveRecord::Migration
  def change
    create_table :dunlop_log_entries do |t|
      t.integer  :loggable_id
      t.string   :loggable_type
      t.string   :message
      t.text     :body
      t.datetime :created_at
      t.datetime :updated_at
    end

    add_index :dunlop_log_entries, [:loggable_id, :loggable_type]
  end
end
