main
 1class CreateFailures < ActiveRecord::Migration
 2  def change
 3    create_table :failures do |t|
 4      t.references :environment, index: true
 5      t.string :message
 6      t.string :hostname
 7      t.string :error_type
 8      t.text :backtrace, array: true, default: []
 9
10      t.timestamps
11    end
12  end
13end