Class: Code0::ZeroTrack::Injectors::ActiveRecordSchemaMigrations
- Inherits:
-
Object
- Object
- Code0::ZeroTrack::Injectors::ActiveRecordSchemaMigrations
- Defined in:
- lib/code0/zero_track/injectors/active_record_schema_migrations.rb
Class Method Summary collapse
Class Method Details
.inject! ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/code0/zero_track/injectors/active_record_schema_migrations.rb', line 7 def self.inject! # Patch to write version information as empty files under the db/schema_migrations directory # This is intended to reduce potential for merge conflicts in db/structure.sql ActiveSupport.on_load(:active_record_postgresqladapter) do prepend Database::PostgresqlAdapter::DumpSchemaVersionsMixin end # Patch to load version information from empty files under the db/schema_migrations directory ActiveRecord::Tasks::PostgreSQLDatabaseTasks .prepend Database::PostgresqlDatabaseTasks::LoadSchemaVersionsMixin end |