Sha256: e124a9e64f3508850e7d529834c28ce8732cbff4a62830e0977ac4f57614fc30

Contents?: true

Size: 419 Bytes

Versions: 5

Compression:

Stored size: 419 Bytes

Contents

class CreateJobs < ActiveRecord::Migration[5.0]
  def change
    create_table :jobs do |t|
      t.references :pipeline,   foreign_key: true, null: false
      t.string :pipeline_stage
      t.string :key,            null: false
      t.string :status,         null: false, default: 'PENDING'
      t.string :commit
      t.string :branch
      t.string :worker
      t.json :spec

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobs-api-0.2.1 db/migrate/20161108233304_create_jobs.rb
jobs-api-0.2.0 db/migrate/20161108233304_create_jobs.rb
jobs-api-0.1.2 db/migrate/20161108233304_create_jobs.rb
jobs-api-0.1.1 db/migrate/20161108233304_create_jobs.rb
jobs-api-0.1.0 db/migrate/20161108233304_create_jobs.rb