You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
438 B
16 lines
438 B
class Paranoid < ActiveRecord::Migration
|
|
def self.up
|
|
add_column :wiki_pages, :deleted_at, :timestamp
|
|
add_column :messages, :deleted_at, :timestamp
|
|
add_column :events, :deleted_at, :timestamp
|
|
add_column :attachments, :deleted_at, :timestamp
|
|
end
|
|
|
|
def self.down
|
|
remove_column :wiki_pages, :deleted_at
|
|
remove_column :messages, :deleted_at
|
|
remove_column :events, :deleted_at
|
|
remove_column :attachments, :deleted_at
|
|
end
|
|
end
|