method

structure_dump_flags

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: DatabaseTasks
structure_dump_flags public

Extra flags passed to database CLI tool (mysqldump/pg_dump) when calling db:schema:dump It can be used as a string/array (the typical case) or a hash (when you use multiple adapters) Example:

ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = {
  mysql2: ['--no-defaults', '--skip-add-drop-table'],
  postgres: '--no-tablespaces'
}
Show source
Register or log in to add new notes.