method

init_with

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: SchemaCache
init_with(coder) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 289
      def init_with(coder)
        @columns          = coder["columns"]
        @columns_hash     = coder["columns_hash"]
        @primary_keys     = coder["primary_keys"]
        @data_sources     = coder["data_sources"]
        @indexes          = coder["indexes"] || {}
        @version          = coder["version"]
        @database_version = coder["database_version"]

        unless coder["deduplicated"]
          derive_columns_hash_and_deduplicate_values
        end
      end
Register or log in to add new notes.