instance method
check_schema_sha1
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
check_schema_sha1(pool, file)
No documentation comment.
Parameters
-
poolreq -
filereq
Source
# File activerecord/lib/active_record/tasks/database_tasks.rb, line 565
def check_schema_sha1(pool, file)
internal_metadata = pool.internal_metadata
return false unless internal_metadata.enabled?
return false unless internal_metadata.table_exists?
internal_metadata[:schema_sha1] == schema_sha1(file)
end
Defined in activerecord/lib/active_record/tasks/database_tasks.rb line 565
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Tasks::DatabaseTasks