rename sub roles
This commit is contained in:
parent
9846fb9f6f
commit
30cc3431b9
|
@ -33,4 +33,15 @@ namespace :data_migration do
|
||||||
ModuleApp.create!(:key=>'search',:title => 'search',:enable_frontend=> true,:app_pages=>["full_search","optional_search"])
|
ModuleApp.create!(:key=>'search',:title => 'search',:enable_frontend=> true,:app_pages=>["full_search","optional_search"])
|
||||||
end
|
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
|
end
|
Reference in New Issue