class DBX::ORM::Model::Schema

Overview

Model Schema.

Defined in:

orm/model.cr

Instance Method Summary

Instance Method Detail

def pk #

Same as #pk but may return nil when the record hasn't been saved instead of raising.


def pk! #

Always returns this record's primary key value, even when the primary key isn't named #pk.