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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200923102312_update_programming_language_colors.rb')
-rw-r--r--db/migrate/20200923102312_update_programming_language_colors.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20200923102312_update_programming_language_colors.rb b/db/migrate/20200923102312_update_programming_language_colors.rb
deleted file mode 100644
index 37233bd3148..00000000000
--- a/db/migrate/20200923102312_update_programming_language_colors.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-require 'yaml'
-
-class UpdateProgrammingLanguageColors < ActiveRecord::Migration[6.0]
- DOWNTIME = false
-
- class ProgrammingLanguage < ActiveRecord::Base; end
-
- def up
- YAML.load_file("vendor/languages.yml").each do |name, metadata|
- color = metadata["color"]
- next unless color.present?
-
- ProgrammingLanguage.where(name: name).update(color: color)
- end
- end
-
- def down
- # noop
- end
-end