Class: Backhoe::MysqlSkipColumns::SanitizedDatabase
- Inherits:
-
Struct
- Object
- Struct
- Backhoe::MysqlSkipColumns::SanitizedDatabase
- Defined in:
- lib/backhoe/mysql.rb
Instance Method Summary collapse
Instance Method Details
#dump ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'lib/backhoe/mysql.rb', line 50 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 |