# frozen_string_literal: true class PostFile < ApplicationRecord ########################################### # Attributes attribute :post_id, :integer attribute :file_id, :integer ########################################### # Associations belongs_to :file, class_name: "UploadedFile" belongs_to :post ########################################### end