Sha256: 6b03b4d47d6065e90720fba7676b36b0c78a5cdb9baabb66c12f1bce9e5a5822

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.string :name
      t.string :type
      
      t.references :project
      t.string :commit_sha1
      
      t.text :code    
      t.integer :priority, :default => 20
      t.text :on_success
      t.text :on_failure
      
      t.boolean :system, :default => false # Is a plugin or a ginst task
      t.datetime :started_at, :ended_at
      t.string :status, :default => 'prepared'
      t.integer :pid
      t.text :output, :limit => 10.megabytes
      t.integer :exit_code
      
      t.timestamps
    end
  end

  def self.down
    drop_table :tasks
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ginst-2009.12.8 db/migrate/20091025165305_create_tasks.rb
ginst-2009.11.24 db/migrate/20091025165305_create_tasks.rb