Sha256: 36078eea321e1505d2650889360637f443c53383650a5eda1c816b04ed52cb3c

Contents?: true

Size: 310 Bytes

Versions: 32

Compression:

Stored size: 310 Bytes

Contents

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

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
switchman-1.2.9 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.8 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.7 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.5 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.4 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.3 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.2 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.1 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.0 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.1.0 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.0.0 lib/switchman/active_record/postgresql_adapter.rb
switchman-0.0.1 lib/switchman/active_record/postgresql_adapter.rb