Sha256: da0887c32fc40cd32d86967d310f475132c2541ed3d5640aac67555d11f6b19a

Contents?: true

Size: 241 Bytes

Versions: 4

Compression:

Stored size: 241 Bytes

Contents

class AddPublishedAtToLabels < ActiveRecord::Migration[4.2]
  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

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.14.5 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.14.4 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.13.2 db/migrate/20110427120534_add_published_at_to_labels.rb
iqvoc-4.13.0 db/migrate/20110427120534_add_published_at_to_labels.rb