Sha256: 62d6ff5ed06e1cb8955e78167a5de010bf52734329baf57a657619ace7449dbc

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

ActiveRecordDoctor.configure do
  global :ignore_tables, [
    "ar_internal_metadata",
    "schema_migrations",
    "active_storage_blobs",
    "active_storage_attachments",
    "action_text_rich_texts"
  ]

  detector :extraneous_indexes,
    ignore_tables: [],
    ignore_indexes: []

  detector :incorrect_boolean_presence_validation,
    ignore_models: [],
    ignore_attributes: []

  detector :incorrect_dependent_option,
    ignore_models: [],
    ignore_associations: []

  detector :mismatched_foreign_key_type,
    ignore_tables: [],
    ignore_columns: []

  detector :missing_foreign_keys,
    ignore_tables: [],
    ignore_columns: []

  detector :missing_non_null_constraint,
    ignore_tables: [],
    ignore_columns: []

  detector :missing_presence_validation,
    ignore_models: [],
    ignore_attributes: []

  detector :missing_unique_indexes,
    ignore_models: [],
    ignore_columns: []

  detector :short_primary_key_type,
    ignore_tables: []

  detector :undefined_table_references,
    ignore_models: []

  detector :unindexed_deleted_at,
    ignore_tables: [],
    ignore_columns: [],
    ignore_indexes: [],
    column_names: ["deleted_at", "discarded_at"]

  detector :unindexed_foreign_keys,
    ignore_tables: [],
    ignore_columns: []
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record_doctor-1.9.0 lib/active_record_doctor/config/default.rb
active_record_doctor-1.9.0.rc1 lib/active_record_doctor/config/default.rb