Sha256: b24d41a95b193f2704f10a73cd7cde27b45791848b20d0a1ae7f8ee083609409

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module Switchman
  module ActiveRecord
    module PostgreSQLAdapter
      def self.included(klass)
        klass::NATIVE_DATABASE_TYPES[:primary_key] = "bigserial primary key".freeze
      end

      def current_schemas
        select_values("SELECT * FROM unnest(current_schemas(false))")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
switchman-1.2.35 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.34 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.33 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.32 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.31 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.30 lib/switchman/active_record/postgresql_adapter.rb