2009-01-20 19:37:15 +01:00
|
|
|
class ActsAsParanoid < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
add_column :suppliers, :deleted_at, :datetime
|
|
|
|
add_column :articles, :deleted_at, :datetime
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2009-01-29 21:28:22 +01:00
|
|
|
remove_column :suppliers, :deleted_at
|
|
|
|
remove_column :articles, :deleted_at
|
2009-01-20 19:37:15 +01:00
|
|
|
end
|
|
|
|
end
|