Sha256: 2be0188dd6da44a6ec054e8a713e6e5116a1752bbc81a7bc8e5a489dac977337
Contents?: true
Size: 592 Bytes
Versions: 4
Compression:
Stored size: 592 Bytes
Contents
# -*- coding: utf-8 -*- class TagMapping < BaseNew TYPE_ACCOUNT = 0 TYPE_TAG = 1 TYPE_USER = 2 TYPE_INSTANCE = 3 TYPE_INSTANCE_IMAGE = 4 TYPE_HV_CONTROLLER = 5 TYPE_HV_AGENT = 6 TYPE_PHYSICAL_HOST = 7 TYPE_PHYSICAL_HOST_LOCATION = 8 TYPE_IMAGE_STORAGE_HOST = 9 TYPE_IMAGE_STORAGE = 10 inheritable_schema do primary_key :id, :type=>Integer Fixnum :tag_id, :null=>false Fixnum :target_type, :size=>2 # see Dcmgr::Models::TagMapping::TYPE_XXXX Fixnum :target_id, :null=>false index [:tag_id, :target_type, :target_id] end many_to_one :tag end
Version data entries
4 entries across 4 versions & 1 rubygems