Sha256: 4a38d4b98fd61ddb204309d5819e710dbda45f736a1c6df6153cc672b48325d7

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

module Gamification
  class Item < ApplicationRecord
    belongs_to :item_type,class_name: 'Gamification::ItemType',foreign_key: :gamification_item_type_id
    belongs_to :item_group,class_name: 'Gamification::ItemGroup',foreign_key: :gamification_item_group_id
    belongs_to :user
    has_many :inventories,class_name: 'Gamification::Inventory',foreign_key: :gamification_item_id

    mount_uploader :image, ImageUploader
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
go_gamification-0.0.20 app/models/gamification/item.rb
go_gamification-0.0.19 app/models/gamification/item.rb
go_gamification-0.0.18 app/models/gamification/item.rb
go_gamification-0.0.17 app/models/gamification/item.rb