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.29 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.28 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.27 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.26 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.25 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.24 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.23 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.22 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.21 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.20 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.19 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.18 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.17 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.16 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.15 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.14 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.13 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.12 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.11 lib/switchman/active_record/postgresql_adapter.rb
switchman-1.2.10 lib/switchman/active_record/postgresql_adapter.rb