Sha256: c762ccf2dea98c0eda27b7d1dbb09ff9649582d57077072210241b73b7fa66cc

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

module PhcdevworksTutorials
  class Tutorial::Step < ApplicationRecord

    # Image Upload
    has_one_attached :tutorial_step_image

    # Relationships
    belongs_to :post, class_name: "PhcdevworksTutorials::Tutorial::Post"
    has_many :categories, class_name: "Tutorial::Category", :through => :post
    belongs_to :user, class_name: "PhcdevworksAccounts::User"

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
phcdevworks_tutorials-2.1.1 app/models/phcdevworks_tutorials/tutorial/step.rb
phcdevworks_tutorials-2.1.0 app/models/phcdevworks_tutorials/tutorial/step.rb
phcdevworks_tutorials-2.0.0 app/models/phcdevworks_tutorials/tutorial/step.rb
phcdevworks_tutorials-1.2.5 app/models/phcdevworks_tutorials/tutorial/step.rb
phcdevworks_tutorials-1.2.4 app/models/phcdevworks_tutorials/tutorial/step.rb