Allow messages to be deleted from the outbox as well as the inbox.

This commit is contained in:
Tom Hughes 2009-07-23 17:41:50 +00:00
parent f3bf0c8b14
commit 581c243e0e
7 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,11 @@
class AddSenderVisibleToMessage < ActiveRecord::Migration
def self.up
rename_column :messages, :visible, :to_user_visible
add_column :messages, :from_user_visible, :boolean, :default => true, :null => false
end
def self.down
remove_column :messages, :from_user_visible
rename_column :messages, :to_user_visible, :visible
end
end