summaryrefslogtreecommitdiffstats
path: root/db/migrate/20110408103312_add_roles_issues_visibility.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-11 17:53:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-11 17:53:15 +0000
commitaa0d01b3d9f5ae5634eda73e1becd75cc4668f3e (patch)
tree8a2a59ba70b18777cf35940ff01b961709405893 /db/migrate/20110408103312_add_roles_issues_visibility.rb
parent5fd891aa72243e7fff19a05d080c921ae420eeeb (diff)
downloadredmine-aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e.tar.gz
redmine-aa0d01b3d9f5ae5634eda73e1becd75cc4668f3e.zip
Adds an issues visibility level on roles (#7412).
It can be set so that users only see their own issues (created or assigned). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20110408103312_add_roles_issues_visibility.rb')
-rw-r--r--db/migrate/20110408103312_add_roles_issues_visibility.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20110408103312_add_roles_issues_visibility.rb b/db/migrate/20110408103312_add_roles_issues_visibility.rb
new file mode 100644
index 000000000..1e6b29a64
--- /dev/null
+++ b/db/migrate/20110408103312_add_roles_issues_visibility.rb
@@ -0,0 +1,9 @@
+class AddRolesIssuesVisibility < ActiveRecord::Migration
+ def self.up
+ add_column :roles, :issues_visibility, :string, :limit => 30, :default => 'default', :null => false
+ end
+
+ def self.down
+ remove_column :roles, :issues_visibility
+ end
+end