Class: Backhoe::Dump::SanitizedDatabase

Inherits:
Struct
  • Object
show all
Defined in:
lib/backhoe/dump.rb

Instance Method Summary collapse

Instance Method Details

#dumpObject



81
82
83
84
85
86
87
88
# File 'lib/backhoe/dump.rb', line 81

def dump
  with_sanitized_tables do
    yield skip_tables
  end
  skip_tables.each do |table|
    File.write path, "RENAME TABLE `sanitized_#{table}` TO `#{table}`;", mode: "a"
  end
end