Class: Hanami::Model::Associations::BelongsTo Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/model/associations/belongs_to.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Many-To-One association

Since:

  • 0.7.0

Class Method Summary collapse

Class Method Details

.schema_type(entity) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0



13
14
15
# File 'lib/hanami/model/associations/belongs_to.rb', line 13

def self.schema_type(entity)
  Sql::Types::Schema::AssociationType.new(entity)
end