Sha256: 61ef262b675b179ce283430adeb436ee509aaea9c5acf671cad23675cd95a1fa
Contents?: true
Size: 382 Bytes
Versions: 103
Compression:
Stored size: 382 Bytes
Contents
class AddPublishedToExhibit < ActiveRecord::Migration[4.2] 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
103 entries across 103 versions & 1 rubygems