Add support for logical deletion of diary entries and comments.

This commit is contained in:
Tom Hughes 2009-11-14 15:57:08 +00:00
parent 6bfa897cfc
commit 634565c5d3
7 changed files with 92 additions and 14 deletions

View file

@ -0,0 +1,11 @@
class AddVisibleToDiaries < ActiveRecord::Migration
def self.up
add_column :diary_entries, :visible, :boolean, :null => false, :default => true
add_column :diary_comments, :visible, :boolean, :null => false, :default => true
end
def self.down
remove_column :diary_comments, :visible
remove_column :diary_entries, :visible
end
end