Method: ActsAsTable::RecordModel#foreign_keys

Defined in:
app/models/acts_as_table/record_model.rb

#foreign_keysActiveRecord::Relation<ActsAsTable::ForeignKey>

Returns the ActsAsTable foreign keys for this ActsAsTable record model.

Returns:

See Also:



46
47
48
49
50
51
52
53
# File 'app/models/acts_as_table/record_model.rb', line 46

has_many :foreign_keys, **{
  autosave: true,
  class_name: 'ActsAsTable::ForeignKey',
  dependent: :destroy,
  foreign_key: 'record_model_id',
  inverse_of: :record_model,
  validate: true,
}