Sha256: d4b3f8455aa8e28bffa40a51eeb48c7e86248cec80902f95d00120d19a16667e
Contents?: true
Size: 456 Bytes
Versions: 16
Compression:
Stored size: 456 Bytes
Contents
class AddPaymentReminderHistory < ActiveRecord::Migration def up add_column :ems_registrations, :payment_reminder_history, :text Registration.unscoped.each do |r| Account.current = Account.find(r.account_id) if r.payment_reminder_sent_on r.update_attribute(:payment_reminder_history, [r.payment_reminder_sent_on]) end end end def down remove_column :ems_registrations, :payment_reminder_history end end
Version data entries
16 entries across 16 versions & 1 rubygems