activerecord-spanner-adapter - Class ActiveRecord::ConnectionAdapters::Spanner::ReferenceDefinition (v2.0.0)

Reference documentation and code samples for the activerecord-spanner-adapter class ActiveRecord::ConnectionAdapters::Spanner::ReferenceDefinition.

Inherits

  • ActiveRecord::ConnectionAdapters::ReferenceDefinition

Methods

#initialize

def initialize(name, polymorphic: false, index: true, foreign_key: false, type: :integer, **options) -> ReferenceDefinition

This constructor intentionally does not call super to prevent ActiveRecord from creating an additional secondary index for the foreign key. rubocop:disable Lint/MissingSuper

Returns
Raises
  • (ArgumentError)