From c159c8e73651771b7c51ebfce8947aa8a8148292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 26 Mar 2015 10:34:28 +0100 Subject: [PATCH] unable to properly uninstall under Redmine 3.0.1 #366 --- .../20150120152101_notifications_nullable.rb | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/db/migrate/20150120152101_notifications_nullable.rb b/db/migrate/20150120152101_notifications_nullable.rb index f40b601c..5155b23c 100644 --- a/db/migrate/20150120152101_notifications_nullable.rb +++ b/db/migrate/20150120152101_notifications_nullable.rb @@ -1,6 +1,8 @@ +# encoding: utf-8 +# # Redmine plugin for Document Management System "Features" # -# Copyright (C) 2014 Karel Pičman +# Copyright (C) 2011-15 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,16 +19,9 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class NotificationsNullable < ActiveRecord::Migration - def up - # Switch on the default notifications for new projects and folders + def up change_column :projects, :dmsf_notification, :boolean, :default => false, :null => true change_column :dmsf_folders, :notification, :boolean, :default => false, :null => true change_column :dmsf_files, :notification, :boolean, :default => false, :null => true - end - - def down - change_column :projects, :dmsf_notification, :boolean, :default => true, :null => false - change_column :dmsf_folders, :notification, :boolean, :default => true, :null => false - change_column :dmsf_files, :notification, :boolean, :default => true, :null => false - end + end end \ No newline at end of file