Class: ActiveRecord::ConnectionAdapters::Spanner::Table

Inherits:
Table
  • Object
show all
Defined in:
lib/active_record/connection_adapters/spanner/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#primary_key(name, type = :primary_key, **options) ⇒ Object



52
53
54
55
56
# File 'lib/active_record/connection_adapters/spanner/schema_definitions.rb', line 52

def primary_key name, type = :primary_key, **options
  type = :string # rubocop:disable Lint/ShadowedArgument
  options.merge primary_key: true
  super
end