Sha256: 5fea04489c5c4f155c19d2dbba566b1bff0089712d80aec97a75662b032cfcce

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

# Copyright 2020 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module Spanner
      class SchemaDumper < ConnectionAdapters::SchemaDumper # :nodoc:
        def default_primary_key? column
          schema_type(column) == :integer
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.2.2 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-1.2.1 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-1.2.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-1.1.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-1.0.1 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-1.0.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-0.7.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-0.6.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb
activerecord-spanner-adapter-0.5.0 lib/active_record/connection_adapters/spanner/schema_dumper.rb