instance method
schema_up_to_date?
Ruby on Rails edge
Since v6.0.6.1Signature
schema_up_to_date?(configuration, _ = nil, file = nil, pool: nil)
No documentation comment.
Parameters
-
configurationreq -
_opt = nil -
fileopt = nil -
poolkey = nil
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 403
def schema_up_to_date?(configuration, _ = nil, file = nil, pool: nil)
db_config = resolve_configuration(configuration)
file ||= schema_dump_path(db_config)
return true unless file && File.exist?(file)
if pool
check_schema_sha1(pool, file)
else
with_temporary_pool(db_config) do |pool|
check_schema_sha1(pool, file)
end
end
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 403
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks