Class: Backhoe::Dump::SanitizedDatabase
- Inherits:
-
Struct
- Object
- Struct
- Backhoe::Dump::SanitizedDatabase
- Defined in:
- lib/backhoe/dump.rb
Instance Method Summary collapse
Instance Method Details
#dump ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/backhoe/dump.rb', line 49 def dump with_sanitized_tables do yield skip_tables end skip_tables.each do |table| File.write file_path, "RENAME TABLE `sanitized_#{table}` TO `#{table}`;", mode: "a" end end |