rename sub roles

This commit is contained in:
Matthew K. Fu JuYuan 2012-07-26 14:12:52 +08:00
parent 9846fb9f6f
commit 30cc3431b9
1 changed files with 11 additions and 0 deletions

View File

@ -33,4 +33,15 @@ namespace :data_migration do
ModuleApp.create!(:key=>'search',:title => 'search',:enable_frontend=> true,:app_pages=>["full_search","optional_search"])
end
task :rename_test_role_name => :environment do
sr = SubRole.first({conditions:{key: 'good_teacher' }})
sr.i18n_variable[:zh_tw] = '銳論數位'
sr.i18n_variable[:en] = 'RulingCom'
sr.save!
sr = SubRole.first({conditions:{key: 'bad_teacher' }})
sr.i18n_variable[:zh_tw] = '銳論數位'
sr.i18n_variable[:en] = 'RulingCom'
sr.save!
end
end