1
0

account_deletion_request.rb 430 B

1234567891011121314151617181920
  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: account_deletion_requests
  5. #
  6. # id :bigint(8) not null, primary key
  7. # account_id :bigint(8)
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. #
  11. class AccountDeletionRequest < ApplicationRecord
  12. DELAY_TO_DELETION = 30.days.freeze
  13. belongs_to :account
  14. def due_at
  15. created_at + DELAY_TO_DELETION
  16. end
  17. end