Sha256: c87727aa343781f17095fd743a07eb869eb6f70e28226f5cbe6f7cafb7bca019
Contents?: true
Size: 416 Bytes
Versions: 64
Compression:
Stored size: 416 Bytes
Contents
# This migration comes from dm_core (originally 20130518155712) class AddProfileEmail < ActiveRecord::Migration def up add_column :user_profiles, :email, :string User.all.find_each do |user| Account.current = Account.find(user.account_id) user.user_profile.update_attribute(:email, user.attributes['email']) end end def down remove_column :user_profiles, :email end end
Version data entries
64 entries across 64 versions & 4 rubygems