Class: Backup::LoadFromFiles::RelationshipFile

Inherits:
DataFile
  • Object
show all
Defined in:
lib/backup/load_from_files.rb

Instance Attribute Summary

Attributes inherited from DataFile

#content

Instance Method Summary collapse

Methods inherited from DataFile

#full_hash, #initialize, #table_name, #table_name_sym

Constructor Details

This class inherits a constructor from Backup::LoadFromFiles::DataFile

Instance Method Details

#relationshipsObject



48
49
50
51
52
# File 'lib/backup/load_from_files.rb', line 48

def relationships
  @relationships ||= full_hash[:nullified_relationships].map do |rel|
    rel.symbolize_keys
  end
end