migrate hy users to hye

closes #7822
This commit is contained in:
Jonne Haß 2018-06-03 21:53:12 +02:00 committed by Benjamin Neff
parent fe75602928
commit 88503539ec
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -0,0 +1,11 @@
# frozen_string_literal: true
class RenameArmenianLocaleKey < ActiveRecord::Migration[5.1]
def up
User.where(language: "hy").update_all(language: "hye")
end
def down
User.where(language: "hye").update_all(language: "hy")
end
end