summaryrefslogtreecommitdiffstats
path: root/db/migrate/083_add_messages_sticky.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 12:25:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 12:25:07 +0000
commit29b3614bcb759214bb1aba77c27ac11c8ef6b15b (patch)
tree1783bd1f65552a4e2cea332bda9f42b1831d4e78 /db/migrate/083_add_messages_sticky.rb
parent866e9e2503713c67fd33b389d4e840c04ce1562d (diff)
downloadredmine-29b3614bcb759214bb1aba77c27ac11c8ef6b15b.tar.gz
redmine-29b3614bcb759214bb1aba77c27ac11c8ef6b15b.zip
Forums enhancements:
* messages can now be edited/deleted (explicit permissions need to be given) * topics can be locked so that no reply can be added (only by users allowed to edit messages) * topics can be marked as sticky so that they always appear at the top of the list (only by users allowed to edit messages) git-svn-id: http://redmine.rubyforge.org/svn/trunk@926 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/083_add_messages_sticky.rb')
-rw-r--r--db/migrate/083_add_messages_sticky.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/083_add_messages_sticky.rb b/db/migrate/083_add_messages_sticky.rb
new file mode 100644
index 000000000..8fd5d2ce3
--- /dev/null
+++ b/db/migrate/083_add_messages_sticky.rb
@@ -0,0 +1,9 @@
+class AddMessagesSticky < ActiveRecord::Migration
+ def self.up
+ add_column :messages, :sticky, :integer, :default => 0
+ end
+
+ def self.down
+ remove_column :messages, :sticky
+ end
+end