Sha256: 9561301bb647e3b6117877bf4598daeebb8d1f268673dce5eaeef09d1d589bcb
Contents?: true
Size: 464 Bytes
Versions: 22
Compression:
Stored size: 464 Bytes
Contents
class AssignMissingUuidsForLocalAccounts < ActiveRecord::Migration[4.2] def change enable_extension :pgcrypto OpenStax::Accounts::Account.where(uuid: nil).update_all('"uuid" = gen_random_uuid()') change_column :openstax_accounts_accounts, :uuid, :uuid, using: 'uuid::uuid', default: 'gen_random_uuid()', null: false end end
Version data entries
22 entries across 22 versions & 1 rubygems