Skip to content

Instantly share code, notes, and snippets.

@dbackeus
Created April 26, 2010 10:12
Show Gist options
  • Save dbackeus/379168 to your computer and use it in GitHub Desktop.
Save dbackeus/379168 to your computer and use it in GitHub Desktop.
# 2a6161c65e17659307285a53cbd27b3f14267b84
Account.all.each do |account|
account.update_attributes(:default_cdn_strategy => "LocalProgressive", :default_original_movie_strategy => "LocalStorage")
end
Movie.all.each do |movie|
movie.update_attributes(:cdn_strategy => "LocalProgressive", :original_file_strategy => "LocalStorage")
end
# 5dd99b907164a149e79f5bc10545bc290ebf5776
Account.where(:api_public_key => nil).each do |a|
a.api_public_key = Account.generate_api_key
a.api_private_key = Account.generate_api_key
a.save!
end
# 3d999e81fb155b7cb9f166975bbe2d363ce2cd2b
Account.where(:test => nil).each do |a|
a.test = false
a.save!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment