unable to properly uninstall under Redmine 3.0.1 #366

This commit is contained in:
Karel Pičman 2015-03-26 10:34:28 +01:00
parent e7b6e4782f
commit c159c8e736

View File

@ -1,6 +1,8 @@
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2014 Karel Pičman <karel.picman@lbcfree.net>
# Copyright (C) 2011-15 Karel Pičman <karel.picman@lbcfree.net>
#
# 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