Class: Migflow::Analyzers::Rules::StringWithoutLimitRule
- Defined in:
- lib/migflow/analyzers/rules/string_without_limit_rule.rb
Instance Method Summary collapse
Instance Method Details
#call(tables) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/migflow/analyzers/rules/string_without_limit_rule.rb', line 7 def call(tables) tables.flat_map do |table_name, table| string_columns_without_limit(table).map do |col| warning( table: table_name, column: col[:name], message: "String column '#{col[:name]}' has no limit defined", severity: :info ) end end end |