Sha256: 05009b7278af7c4c1ce8bb7552850582d70d70824c9bac1c7a49daf5ec1c02b4

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

require 'hanami/model/types'

module Hanami
  module Model
    module Associations
      # Many-To-One association
      #
      # @since 0.7.0
      # @api private
      class BelongsTo
        # @since 0.7.0
        # @api private
        def self.schema_type(entity)
          Sql::Types::Schema::AssociationType.new(entity)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hanami-model-1.0.4 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.3 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.2 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.1 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.0 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.0.rc1 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.0.beta3 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.0.beta2 lib/hanami/model/associations/belongs_to.rb
hanami-model-1.0.0.beta1 lib/hanami/model/associations/belongs_to.rb
hanami-model-0.7.0 lib/hanami/model/associations/belongs_to.rb