Commit 435165db509309fb53ef5a0ab0190542ec82fe33
Exists in
master
and in
24 other branches
Merge branch 'fix_accentuation_on_institution_modal_selects' into 'master'
Fix accentuation on institution modal selects Corrige os acentos dos selects na modal de instituição See merge request !148
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
src/noosfero-spb/gov_user/db/migrate/20160112174948_applies_accentuation_on_models_without_them.rb
0 → 100644
... | ... | @@ -0,0 +1,17 @@ |
1 | +#encoding: utf-8 | |
2 | + | |
3 | +class AppliesAccentuationOnModelsWithoutThem < ActiveRecord::Migration | |
4 | + def up | |
5 | + execute "UPDATE governmental_powers SET name = 'Judiciário' WHERE name = 'Judiciario'" | |
6 | + execute "UPDATE governmental_powers SET name = 'Não se Aplica' WHERE name = 'Nao se Aplica'" | |
7 | + | |
8 | + execute "UPDATE juridical_natures SET name = 'Administração Direta' WHERE name = 'Administracao Direta'" | |
9 | + execute "UPDATE juridical_natures SET name = 'Empresa Pública' WHERE name = 'Empresa Publica'" | |
10 | + execute "UPDATE juridical_natures SET name = 'Fundação' WHERE name = 'Fundacao'" | |
11 | + execute "UPDATE juridical_natures SET name = 'Orgão Autônomo' WHERE name = 'Orgao Autonomo'" | |
12 | + end | |
13 | + | |
14 | + def down | |
15 | + say "This migration has no back state" | |
16 | + end | |
17 | +end | ... | ... |