method
structure_dump_flags
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Tasks::DatabaseTasks
structure_dump_flagspublic
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' }