mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
Option to set a default assignee on each project (#482).
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@16525 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class AddProjectDefaultAssignedToId < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :projects, :default_assigned_to_id, :integer, :default => nil
|
||||
# Try to copy existing settings from the plugin if redmine_default_assign plugin was used
|
||||
if column_exists?(:projects, :default_assignee_id, :integer)
|
||||
Project.update_all('default_assigned_to_id = default_assignee_id')
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :projects, :default_assigned_to_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user