Sha256: 101d638b62ffb93451c7efeedec5b3ac369662e8fd7e6df453b982af315c70d5
Contents?: true
Size: 363 Bytes
Versions: 16
Compression:
Stored size: 363 Bytes
Contents
class MoveUsersUnfuddleIdToProps < ActiveRecord::Migration def up require "progressbar" users = User.all pbar = ProgressBar.new("users", users.count) users.find_each do |user| if unfuddle_id = user.read_attribute(:unfuddle_id) user.update_prop! "unfuddle.id", unfuddle_id end pbar.inc end pbar.finish end end
Version data entries
16 entries across 16 versions & 1 rubygems