Commit fad184cb authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'zj-update-lang-colors' into 'master'

Update programming language colors and metadata

See merge request gitlab-org/gitlab!43111
parents 2ae6c5f3 ee05bed0
---
title: Update programming language colors and metadata
merge_request: 43111
author:
type: changed
# 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
f19e61e3863905885c8b5b2129be2586d912d616a5b3b54e99a72c5760082059
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment