Class: ROM::Schema

Inherits:
Object
  • Object
show all
Includes:
Adamantium::Flat
Defined in:
lib/rom/schema.rb,
lib/rom/schema/builder.rb,
lib/rom/schema/definition.rb,
lib/rom/schema/definition/relation.rb,
lib/rom/schema/definition/relation/base.rb

Overview

ROM’s relation schema

Defined Under Namespace

Classes: Builder, Definition

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Relation

Return a relation identified by name

Parameters:

  • name (Symbol)

    of the relation

Returns:



15
16
17
# File 'lib/rom/schema.rb', line 15

def [](name)
  relations.fetch(name)
end