Sha256: 816250f85515d902c7934e0b13662ac80bb6fb32119987cb9ea37484224b354f
Contents?: true
Size: 521 Bytes
Versions: 64
Compression:
Stored size: 521 Bytes
Contents
# This migration comes from dm_core (originally 20140107112418) class UserSiteProfile < ActiveRecord::Base end class AddUserSiteProfileUuid < ActiveRecord::Migration def up add_column :user_site_profiles, :uuid, :string, :limit => 40 add_index :user_site_profiles, :uuid #--- Create uuid for existing records UserSiteProfile.all.each do |profile| profile.update_attribute(:uuid, SecureRandom.uuid) end end def down remove_column :user_site_profiles, :uuid end end
Version data entries
64 entries across 64 versions & 4 rubygems