11 lines
355 B
Ruby
11 lines
355 B
Ruby
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
|