Class: Pronto::RailsMigrationsAnnotated

Inherits:
Runner
  • Object
show all
Defined in:
lib/pronto/rails_migrations_annotated.rb

Overview

Runner that detects migration smells

Constant Summary collapse

VERSION =
Pronto::RailsMigrationsAnnotatedVersion::VERSION

Instance Method Summary collapse

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/pronto/rails_migrations_annotated.rb', line 11

def run
  @messages = []

  check_migrations_mixed_with_code
  check_migration_schema_version
  check_structure_migration_version_numbers
  check_large_schema_diff
  check_large_structure_diff

  @messages
end