Sha256: 47ac7614f2a052b077774e743c3184de6e117b04421026f9d17beddc6e880f97

Contents?: true

Size: 236 Bytes

Versions: 42

Compression:

Stored size: 236 Bytes

Contents

class AddPublishedAtToLabels < ActiveRecord::Migration
  def self.up
    add_column :labels, "published_at", :date unless column_exists? :labels, "published_at"
  end

  def self.down
    remove_column :labels, "published_at"
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
iqvoc-4.3.3 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-3.2.11 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-3.2.10 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-3.2.9 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.3.2 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.3.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.3.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.2.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.1.3 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.1.2 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.1.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.1.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.9 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.8 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.7 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.6 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.5 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.4 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.3 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.0.2 db/migrate/20110427120534_add_published_at_to_labels.rb