Module: Switchman::ActiveRecord::PostgreSQLAdapter
- Defined in:
- lib/switchman/active_record/postgresql_adapter.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 |
# File 'lib/switchman/active_record/postgresql_adapter.rb', line 4 def self.included(klass) klass::NATIVE_DATABASE_TYPES[:primary_key] = "bigserial primary key".freeze end |
Instance Method Details
#schemas ⇒ Object
8 9 10 |
# File 'lib/switchman/active_record/postgresql_adapter.rb', line 8 def schemas select_values("SELECT * FROM unnest(current_schemas(false))") end |