Sha256: 8b003029e9950ee48f43abd605f084dec87c38f753b466b7547e59e26b225e2a
Contents?: true
Size: 591 Bytes
Versions: 3
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: "PhcdevworksAccountsDevise" 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
3 entries across 3 versions & 1 rubygems