Sha256: 4b6cbf62713a985f64be045ebe0b8d66bb7246c8aae62aa605add5168e427ffa

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

# encoding: utf-8

class ChangeLocaleNames < ActiveRecord::Migration
  def self.up
    Localization.where(locale: "nor").update_all(locale: "nb")
    Localization.where(locale: "eng").update_all(locale: "en")
  end

  def self.down
    Localization.where(locale: "en").update_all(locale: "eng")
    Localization.where(locale: "nb").update_all(locale: "nor")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pages_core-3.4.3 db/migrate/20140414150500_change_locale_names.rb
pages_core-3.5.1 db/migrate/20140414150500_change_locale_names.rb
pages_core-3.4.2 db/migrate/20140414150500_change_locale_names.rb