Sha256: 45311c37ea6c8ebb0fc73f32855952711e50981e63dc20db9c79cf54e64fbefe

Contents?: true

Size: 236 Bytes

Versions: 16

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

16 entries across 16 versions & 1 rubygems

Version Path
iqvoc-4.12.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.12.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.11.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.11.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.10.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.9.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.8.2 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.8.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.8.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.7.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.6.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.5.2 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.6.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.5.1 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.5.0 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.4.0 db/migrate/20110427120534_add_published_at_to_labels.rb