summaryrefslogtreecommitdiffstats
path: root/db/migrate/082_add_messages_locked.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/082_add_messages_locked.rb')
-rw-r--r--db/migrate/082_add_messages_locked.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/082_add_messages_locked.rb b/db/migrate/082_add_messages_locked.rb
new file mode 100644
index 000000000..20a172565
--- /dev/null
+++ b/db/migrate/082_add_messages_locked.rb
@@ -0,0 +1,9 @@
+class AddMessagesLocked < ActiveRecord::Migration
+ def self.up
+ add_column :messages, :locked, :boolean, :default => false
+ end
+
+ def self.down
+ remove_column :messages, :locked
+ end
+end