```ruby
class CreateBatchJobs < ActiveRecord::Migration
  def change
    create_table :batch_jobs do |t|
      t.string :parameters
      t.string :name
      t.string :notes
      t.references :font
      t.references :ocr_engine
      t.references :job_type
    end

    add_index :batch_jobs, :job_type_id
    add_index :batch_jobs, :ocr_engine_id
    add_index :batch_jobs, :font_id
  end
end
```

Set different order of columns created for batch_jobs to hopefully ease ability of importing data from legacy database
user
```ruby
class CreateBatchJobs < ActiveRecord::Migration
  def change
    create_table :batch_jobs do |t|
      t.references :job_type
      t.references :ocr_engine
      t.string :parameters
      t.string :name
      t.string :notes
      t.references :font
    end

    add_index :batch_jobs, :job_type_id
    add_index :batch_jobs, :ocr_engine_id
    add_index :batch_jobs, :font_id
  end
end
```
assistant