Sha256: 1e67e00cb6fa67a72d240c5675b0200dd966bb797edde7c77ef169d13abfa32a
Contents?: true
Size: 389 Bytes
Versions: 35
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true if defined?(ActiveRecord::Base) begin ActiveRecord::Migration.maintain_test_schema! rescue ActiveRecord::PendingMigrationError => e puts e.to_s.strip exit 1 end if Rails.configuration.eager_load ActiveRecord::Base.descendants.each do |model| model.load_schema if !model.abstract_class? && model.table_exists? end end end
Version data entries
35 entries across 35 versions & 5 rubygems