logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

backup.rb (603B)


  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