Sha256: 8fbaeb2035b3ca9203a4aef43cf056445d5951fd41ae1309126965daf99e9a74

Contents?: true

Size: 295 Bytes

Versions: 9

Compression:

Stored size: 295 Bytes

Contents

class AddBuildQueuedAt < ActiveRecord::Migration
  def self.up
    add_column :builds, :queued_at, :datetime, :null => true
    Janky::Build.started.each do |b|
      b.update_attributes!(:queued_at => b.created_at)
    end
  end

  def self.down
    remove_column :builds, :queued_at
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
janky-0.13.0.pre1 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.12.0 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.11.1 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.11.0 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.10.2 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.10.0 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.9.15 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.9.14 lib/janky/database/migrate/1317384654_add_build_queued_at.rb
janky-0.9.14.rc1 lib/janky/database/migrate/1317384654_add_build_queued_at.rb