summaryrefslogtreecommitdiff
path: root/db/migrate/20141103135037_add_parallel_to_build.rb
blob: 2a3f64facf1374abeb2cbe5c4f553354a72791a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class AddParallelToBuild < ActiveRecord::Migration
  def change
    create_table :jobs do |t|
      t.integer :project_id, null: false
      t.text :commands
      t.boolean :active, null: false, default: true
      t.timestamps
    end

    add_index :jobs, :project_id
  end
end