2015-11-22 03:03:08 +00:00
|
|
|
desc <<-END_DESC
|
|
|
|
Delete orphaned custom_values table rows from the database that once belonged to Projects that are now deleted. This
|
|
|
|
cleanup is needed before migrating to Easy Redmine.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
rake redmine:ebrc_settings RAILS_ENV=production
|
|
|
|
END_DESC
|
|
|
|
namespace :redmine do
|
|
|
|
task :ebrc_settings => :environment do
|
|
|
|
|
2015-12-04 21:52:27 +00:00
|
|
|
Setting.ui_theme = 'easy_widescreen'
|
2015-11-22 03:03:08 +00:00
|
|
|
|
|
|
|
EasySetting.where(:name => 'hide_login_quotes').each do |setting|
|
|
|
|
setting.value = true
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
|
|
|
|
EasySetting.where(:name => 'show_easy_resource_booking').each do |setting|
|
|
|
|
setting.value = false
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
|
|
|
|
EasySetting.where(:name => 'show_personal_statement').each do |setting|
|
|
|
|
setting.value = false
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
|
|
|
|
EasySetting.where(:name => :attachment_description).each do |setting|
|
|
|
|
setting.value = true
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
EasySetting.where(:name => :attachment_description_required).each do |setting|
|
|
|
|
setting.value = false
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
|
2015-12-23 16:12:16 +00:00
|
|
|
EasySetting.where(:name => :easy_select_limit).each do |setting|
|
|
|
|
setting.value = '10001'
|
|
|
|
setting.save
|
|
|
|
end
|
|
|
|
|
2015-11-22 03:03:08 +00:00
|
|
|
end
|
2015-12-23 16:12:16 +00:00
|
|
|
end
|
|
|
|
|