diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 07:40:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-30 07:40:57 +0000 |
commit | 6659aad3ef651b714a66d648cef2f25e3fff8516 (patch) | |
tree | 4f820edcddb221573b29f91a05786eabff94dd7a /db/migrate | |
parent | 5e28f0b1b6aaabb327d458213f14cf6e5b90ae8a (diff) | |
download | redmine-6659aad3ef651b714a66d648cef2f25e3fff8516.tar.gz redmine-6659aad3ef651b714a66d648cef2f25e3fff8516.zip |
Adds a role setting that viewing all or own time entries (#8929).
git-svn-id: http://svn.redmine.org/redmine/trunk@14275 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150526183158_add_roles_time_entries_visibility.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150526183158_add_roles_time_entries_visibility.rb b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb new file mode 100644 index 000000000..991a14f02 --- /dev/null +++ b/db/migrate/20150526183158_add_roles_time_entries_visibility.rb @@ -0,0 +1,9 @@ +class AddRolesTimeEntriesVisibility < ActiveRecord::Migration + def self.up + add_column :roles, :time_entries_visibility, :string, :limit => 30, :default => 'all', :null => false + end + + def self.down + remove_column :roles, :time_entries_visibility + end +end |