Sha256: e87553519ff2d937c74e4db8abb17f58c1b1633cf4d96e5f3f4be5c212ee5fcc

Contents?: true

Size: 570 Bytes

Versions: 17

Compression:

Stored size: 570 Bytes

Contents

module PhcdevworksTutorials
  class Command::Item < ApplicationRecord

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

    # Image Upload
    has_one_attached :command_item_image

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

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcdevworks_tutorials-12.1.1 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.1.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.5 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.4 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.3 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.2 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.1 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-12.0.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.3.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.2.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.1.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.0.2 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.0.1 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-11.0.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-10.0.0 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-9.0.1 app/models/phcdevworks_tutorials/command/item.rb
phcdevworks_tutorials-9.0.0 app/models/phcdevworks_tutorials/command/item.rb