Sha256: 0e1c3344f815f514eba83c98bc2e51197b06e0083bd9c9d186943504ef99f6d4
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
module CustomPostgresCopy def make_copy(repository, import_file) repository.extend(PostgresCopy::ActsAsCopyTarget::CopyMethods) repository.copy_from Unico::Engine.config.root.join(import_file).to_s ActiveRecord::Base.connection.reset_pk_sequence!(repository.table_name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | lib/custom_postgres_copy.rb |