Sha256: 1deccc0baf8417ee262d365c2ec8933de3ef1b12127ccb6a8b025288d835cbc8
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true # This patch prevents `create_schema` from being added to db/schema.rb as schemas are managed by Apartment # not ActiveRecord like they would be in a vanilla Rails setup. require 'active_record/connection_adapters/abstract/schema_dumper' require 'active_record/connection_adapters/postgresql/schema_dumper' module ActiveRecord module ConnectionAdapters module PostgreSQL class SchemaDumper alias _original_schemas schemas def schemas(stream) _original_schemas(stream) unless Apartment.use_schemas end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ros-apartment-3.2.0 | lib/apartment/active_record/postgres/schema_dumper.rb |
synerma-apartment-3.1.0 | lib/apartment/active_record/postgres/schema_dumper.rb |