View Source ExcellentMigrations.Runner (excellent_migrations v0.1.5)
This module finds migration files in a project and detects potentially dangerous database operations in them.
Link to this section Summary
Link to this section Types
@type danger_type() :: :column_added_with_default | :column_removed | :column_renamed | :column_type_changed | :index_not_concurrently | :many_columns_index | :not_null_added | :operation_delete | :operation_insert | :operation_update | :raw_sql_executed | :table_dropped | :table_renamed | :index_concurrently_without_disable_ddl_transaction | :index_concurrently_without_disable_migration_lock
Link to this section Functions
Detects potentially dangerous database operations in database migration files.
:migrations_paths- optional list of file paths to be checked.
Scope of analysis
migrations_pathsare specified, the analysis will be narrowed down to these files only.
- If not and application env
:excellent_migrations, :start_afteris set, only migrations with timestamp older than the provided one will be chosen.
- If none of the above, all migration files in a project will be analyzed.