diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-20 12:47:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-20 12:47:05 +0000 |
commit | 90d33c3e518f9e05d9e2893907ebd157062d33de (patch) | |
tree | c07d7071247f566b3049a672207dd29c707f67a0 /db/migrate | |
parent | eacd050630b2d2b3047e056a7dab7661fba083ca (diff) | |
download | redmine-90d33c3e518f9e05d9e2893907ebd157062d33de.tar.gz redmine-90d33c3e518f9e05d9e2893907ebd157062d33de.zip |
More flexible mail notifications settings at user level. A user has now 3 options:
* notification on any event on all his projects
* notification on any event on selected projects only (if the user belongs to more than 1 project)
* notification only for things that he watches or he is involded in (eg. issues that he watches or he is author or assignee)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@855 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/001_setup.rb | 2 | ||||
-rw-r--r-- | db/migrate/075_add_members_mail_notification.rb | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/db/migrate/001_setup.rb b/db/migrate/001_setup.rb index 8b299eb1e..1160dd5ef 100644 --- a/db/migrate/001_setup.rb +++ b/db/migrate/001_setup.rb @@ -284,7 +284,7 @@ class Setup < ActiveRecord::Migration Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
# create default administrator account
- user = User.create :firstname => "redMine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en" + user = User.create :firstname => "Redmine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en" user.login = "admin" user.password = "admin"
user.admin = true
diff --git a/db/migrate/075_add_members_mail_notification.rb b/db/migrate/075_add_members_mail_notification.rb new file mode 100644 index 000000000..d83ba8dd0 --- /dev/null +++ b/db/migrate/075_add_members_mail_notification.rb @@ -0,0 +1,9 @@ +class AddMembersMailNotification < ActiveRecord::Migration + def self.up + add_column :members, :mail_notification, :boolean, :default => false, :null => false + end + + def self.down + remove_column :members, :mail_notification + end +end |