cirandas.net

ref: master

db/migrate/20140408172149_enable_show_zoom_button_on_article_images.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class EnableShowZoomButtonOnArticleImages < ActiveRecord::Migration
  def self.up
    Environment.find_each do |environment|
      environment.enable(:show_zoom_button_on_article_images) 
    end
  end

  def self.down
    say("This migration is irreversible.")
  end
end