summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-16 17:47:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-16 17:47:41 +0000
commit446889b3f0cbb8d66d5b72605b14518f01afd17c (patch)
tree5cf2cde689b2fda95a99ce1715554a626b564d72 /db
parent4cedecad4d336780aae1e073aa41a4a9c2169c8f (diff)
downloadredmine-446889b3f0cbb8d66d5b72605b14518f01afd17c.tar.gz
redmine-446889b3f0cbb8d66d5b72605b14518f01afd17c.zip
Added a 'Assignable' boolean on Role model.
If unchecked, issues can not be assigned to users having this role. git-svn-id: http://redmine.rubyforge.org/svn/trunk@649 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/059_add_roles_assignable.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/059_add_roles_assignable.rb b/db/migrate/059_add_roles_assignable.rb
new file mode 100644
index 000000000..a1ba79634
--- /dev/null
+++ b/db/migrate/059_add_roles_assignable.rb
@@ -0,0 +1,9 @@
+class AddRolesAssignable < ActiveRecord::Migration
+ def self.up
+ add_column :roles, :assignable, :boolean, :default => true
+ end
+
+ def self.down
+ remove_column :roles, :assignable
+ end
+end