summaryrefslogtreecommitdiffstats
path: root/db/migrate/20120930112914_add_journals_private_notes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-03 21:36:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-03 21:36:19 +0000
commit0178b5a2fe07e1160348b99ac56c19ebf154ca1b (patch)
tree53f762a779c95b598815864bb674463d90ef64d6 /db/migrate/20120930112914_add_journals_private_notes.rb
parentbb1563f23ffabcf948797e0d8806c3d5344d09a7 (diff)
downloadredmine-0178b5a2fe07e1160348b99ac56c19ebf154ca1b.tar.gz
redmine-0178b5a2fe07e1160348b99ac56c19ebf154ca1b.zip
Private issue notes (#1554).
Adds 2 new permissions for viewing/adding private comments to issues. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10547 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/20120930112914_add_journals_private_notes.rb')
-rw-r--r--db/migrate/20120930112914_add_journals_private_notes.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20120930112914_add_journals_private_notes.rb b/db/migrate/20120930112914_add_journals_private_notes.rb
new file mode 100644
index 000000000..41eb0e9ef
--- /dev/null
+++ b/db/migrate/20120930112914_add_journals_private_notes.rb
@@ -0,0 +1,9 @@
+class AddJournalsPrivateNotes < ActiveRecord::Migration
+ def up
+ add_column :journals, :private_notes, :boolean, :default => false, :null => false
+ end
+
+ def down
+ remove_column :journals, :private_notes
+ end
+end