Skip to content

Rails models

Alban Peignier edited this page Apr 4, 2018 · 4 revisions

Referential model

Methods instead of has_many associations??

Model associated with a Referential

Referential support

Classes with an association to Referential must:

  • include the ReferentialSupport module
  • not have a belongs_to :referential association because each Referential is a separate Postgres schema

Objectids

Objectids are only used on models contained in a Referential. Here's an example:

Model not associated with a Referential

Decorator

Action links