031_add_timestamps_in_product.rb 282 Bytes
class AddTimestampsInProduct < ActiveRecord::Migration
  def self.up
    add_column :products, :created_at, :datetime
    add_column :products, :updated_at, :datetime
  end

  def self.down
    remove_column :products, :created_at
    remove_column :products, :updated_at
  end
end