Skip to content

Instantly share code, notes, and snippets.

@leonardorb
Created July 11, 2012 19:20
Show Gist options
  • Save leonardorb/3092558 to your computer and use it in GitHub Desktop.
Save leonardorb/3092558 to your computer and use it in GitHub Desktop.
class AddFileSizeLimitToAllPlans < ActiveRecord::Migration
def self.up
plans = Plan.all.select{|pl| pl.file_size_limit == 0}
plans.each do |plan|
plan.change_component_value(:file_size_limit,500)
end
end
def self.down
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment