foodsoft/db/migrate/20090119155930_acts_as_paranoid.rb

11 lines
298 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, :datetime
remove_column :articles, :deleted_at, :datetime
end
end