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: eeeb216f32cd13bc7dc8f3d862f36c4178eb8a4f (plain)
1
2
3
4
5
6
7
8
9
10
class FillMissingUuidOnApplicationSettings < ActiveRecord::Migration[4.2]
  DOWNTIME = false

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

  def down
  end
end