Sha256: 34e587443285aa8deee8b2fe3b52141ee8bec42f222c7eb5fbabf99680408ac7
Contents?: true
Size: 328 Bytes
Versions: 16
Compression:
Stored size: 328 Bytes
Contents
class AddUuidToRegistration < ActiveRecord::Migration def up add_column :ems_registrations, :uuid, :string, limit: 36 add_index :ems_registrations, :uuid Registration.unscoped.each {|r| r.update_attribute(:uuid, SecureRandom.uuid)} end def down remove_column :ems_registrations, :uuid end end
Version data entries
16 entries across 16 versions & 1 rubygems