class method self.load_schema!

Ruby on Rails 8.1.3.1

Since v8.0.5.1 Private — implementation detail, not part of the public API

Available in: v8.0.5.1 v8.1.3.1 edge

Signature

self.load_schema!()

No documentation comment.

Source
# File activerecord/lib/active_record/migration.rb, line 776
        def load_schema!
          # Roundtrip to Rake to allow plugins to hook into database initialization.
          root = defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root

          FileUtils.cd(root) do
            Base.connection_handler.clear_all_connections!(:all)
            system("bin/rails db:test:prepare")
          end
        end

Defined in activerecord/lib/active_record/migration.rb line 776 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Migration

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close