The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
603 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: backups
  5. #
  6. # id :integer not null, primary key
  7. # user_id :integer
  8. # dump_file_name :string
  9. # dump_content_type :string
  10. # dump_file_size :integer
  11. # dump_updated_at :datetime
  12. # processed :boolean default(FALSE), not null
  13. # created_at :datetime not null
  14. # updated_at :datetime not null
  15. #
  16. class Backup < ApplicationRecord
  17. belongs_to :user, inverse_of: :backups
  18. has_attached_file :dump
  19. do_not_validate_attachment_file_type :dump
  20. end