BigW Consortium Gitlab

20170426175636_fill_missing_uuid_on_application_settings.rb 227 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
class FillMissingUuidOnApplicationSettings < ActiveRecord::Migration
  DOWNTIME = false

  def up
    execute("UPDATE application_settings SET uuid = #{quote(SecureRandom.uuid)} WHERE uuid is NULL")
  end

  def down
  end
end