class AddTimestampsToInvBillings < ActiveRecord::Migration[6.0]
  def change
    add_column :inv_billings, :created_at, :datetime
    add_column :inv_billings, :updated_at, :datetime
    Billing.all.each do |billing|
      billing.update_columns(created_at: billing.date, updated_at: billing.date)
    end
  end
end
