Class: Backhoe::Dump::SanitizedDatabase

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

Instance Method Summary collapse

Instance Method Details

#dumpObject



73
74
75
76
77
78
79
80
# File 'lib/backhoe/dump.rb', line 73

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