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) -> ReferenceDefinitionThis constructor intentionally does not call super to prevent ActiveRecord from creating an additional secondary index for the foreign key. rubocop:disable Lint/MissingSuper
Returns
- (ReferenceDefinition) — a new instance of ReferenceDefinition
Raises
- (ArgumentError)