闭社主体 forked from https://github.com/tootsuite/mastodon
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.

22 lines
605 B

  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