Commit 4335b39f00adb0982af0e4732e18ab8d4026f05d
Committed by
Daniela Feitosa
1 parent
521ff34b
Exists in
master
and in
24 other branches
Fix the accentuation on GovernmentalPower and JuridicalNature names
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
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 | ... | ... |