foodsoft/db/migrate/20090119155930_acts_as_paranoid.rb

11 lines
276 B
Ruby

class ActsAsParanoid < ActiveRecord::Migration
def self.up
add_column :suppliers, :deleted_at, :datetime
add_column :articles, :deleted_at, :datetime
end
def self.down
remove_column :suppliers, :deleted_at
remove_column :articles, :deleted_at
end
end