Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170426175636_fill_missing_uuid_on_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58ad2c64075e2cbeec757f064756dd970e5981e4 (plain)
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