backup.rb 605 B

12345678910111213141516171819202122
  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: backups
  5. #
  6. # id :bigint(8) not null, primary key
  7. # user_id :bigint(8)
  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