Thursday, September 19, 2024 11:51:26 PM
> settings

Customize


Authenticate

> post_file.rb
# 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
All opinions represented herein are my own
- © 2024 itsthedevman
- build 3c15a1b