From c09553494684447245238cbc2874ce65d4aaecee Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Thu, 24 Jan 2013 23:02:40 +0100 Subject: Autohelp config. --- db/migrate/20130124175109_show_admin_auto_online_help.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20130124175109_show_admin_auto_online_help.rb (limited to 'db/migrate/20130124175109_show_admin_auto_online_help.rb') diff --git a/db/migrate/20130124175109_show_admin_auto_online_help.rb b/db/migrate/20130124175109_show_admin_auto_online_help.rb new file mode 100644 index 0000000..9c3f733 --- /dev/null +++ b/db/migrate/20130124175109_show_admin_auto_online_help.rb @@ -0,0 +1,9 @@ +class ShowAdminAutoOnlineHelp < ActiveRecord::Migration + def up + GsParameter.create(:name => 'AUTO_ADMIN_ONLINE_HELP', :section => 'Documentation', :value => 'true', :class_type => 'Boolean', :description => 'Gemeinschaft will include tips and help whenever it seems fit.') + end + + def down + GsParameter.where(:name => 'AUTO_ADMIN_ONLINE_HELP').destroy_all + end +end -- cgit v1.2.3