Sha256: 3c41fc6de0a0f177a6c7f38be8a14d2db8f3e6097ba0fed2a63c9824319c0790

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

module PhcdevworksTutorials
  class Tutorial::Step < ApplicationRecord

    # Paper Trail Initialize
    has_paper_trail :class_name => 'PhcdevworksTutorials::TutorialStepVersions'

    # Image Upload
    has_one_attached :tutorial_step_image

    # Relationships
    belongs_to :user, class_name: "PhcdevworksAccounts::User"
    belongs_to :post, class_name: "Tutorial::Post"
    belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
    has_many :categories, class_name: "Tutorial::Category", :through => :post

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcdevworks_tutorials-12.2.0 app/models/phcdevworks_tutorials/tutorial/step.rb