Class: SDL::Association::HasOne

Inherits:
SDL::Association show all
Defined in:
lib/sdl/association.rb

Overview

Indicates a one-to-one connection with another Model

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from SDL::Field

Instance Method Details

#typeSymbol

The type of field

Returns:

  • (Symbol)


19
20
21
# File 'lib/sdl/association.rb', line 19

def type
  :has_one
end