Sha256: 533ff1c16c3e8c50d5aa728dd15974b8d93cf56d69967bedd1d756821b5b8b20
Contents?: true
Size: 377 Bytes
Versions: 52
Compression:
Stored size: 377 Bytes
Contents
class AddPublishedToExhibit < ActiveRecord::Migration def change add_column :spotlight_exhibits, :published, :boolean, default: false add_column :spotlight_exhibits, :published_at, :datetime reversible do |dir| dir.up do Spotlight::Exhibit.find_each do |e| e.published = true e.save! end end end end end
Version data entries
52 entries across 52 versions & 1 rubygems