instance method load_schema_current_if_exists

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9

Signature

load_schema_current_if_exists(format = ActiveRecord::Base.schema_format, file = nil, environment = env)

No documentation comment.

Parameters

format opt = ActiveRecord::Base.schema_format
file opt = nil
environment opt = env
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 230
      def load_schema_current_if_exists(format = ActiveRecord::Base.schema_format, file = nil, environment = env)
        if File.exist?(file || schema_file(format))
          load_schema_current(format, file, environment)
        end
      end

Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 230 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Tasks::DatabaseTasks

Type at least 2 characters to search.

↑↓ navigate · open · esc close