Sha256: 03d1ea49cab890491565c7f2719650dd2d63e7d9fcabf7b190b5327b2edf68d6
Contents?: true
Size: 376 Bytes
Versions: 9
Compression:
Stored size: 376 Bytes
Contents
class AddPublishedToExhibit < ActiveRecord::Migration def change add_column :spotlight_exhibits, :published, :boolean, default: true 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
9 entries across 9 versions & 1 rubygems