From 30cc3431b9533ab3cf372a4ec6fd36a88aa3908c Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Thu, 26 Jul 2012 14:12:52 +0800 Subject: [PATCH] rename sub roles --- lib/tasks/data_migration.rake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/tasks/data_migration.rake b/lib/tasks/data_migration.rake index 8d0c3db8..69ab0972 100644 --- a/lib/tasks/data_migration.rake +++ b/lib/tasks/data_migration.rake @@ -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 \ No newline at end of file