Sha256: a796ce044e3d45b6a894c6850aeb43834b80427c81d27ce3da9406ab9f481546

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

class CreateCommands < ActiveRecord::Migration
  def self.up
    create_table :commands do |t|
      t.references :task
      t.integer :position
      
      t.string :name
      t.boolean :system, :default => false
      t.text :command
      t.text :output
      t.integer :exit_code
      t.datetime :started_at, :ended_at
      
      t.timestamps
    end
  end

  def self.down
    drop_table :task_commands
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ginst-2009.12.8 db/migrate/20091025165330_create_commands.rb
ginst-2009.11.24 db/migrate/20091025165330_create_commands.rb
ginst-2009.11.23 db/migrate/20091025165330_create_commands.rb
ginst-2.0.1 db/migrate/20091025165330_create_commands.rb
ginst-2.0.0 db/migrate/20091025165330_create_commands.rb