it'registers an offense when adding a column to a wide table'do
offense='`projects` is a wide table with several columns, addig more should be avoided unless absolutely necessary. Consider storing the column in a different table or creating a new one.'
expect_offense(<<~RUBY)
defup
add_column(:projects,:another_column,:integer)
^^^^^^^^^^#{offense}
end
RUBY
end
it'registers an offense when adding a column with default to a wide table'do
offense='`users` is a wide table with several columns, addig more should be avoided unless absolutely necessary. Consider storing the column in a different table or creating a new one.'
it'registers an offense when adding a reference'do
offense='`ci_builds` is a wide table with several columns, addig more should be avoided unless absolutely necessary. Consider storing the column in a different table or creating a new one.'
offense='`projects` is a wide table with several columns, addig more should be avoided unless absolutely necessary. Consider storing the column in a different table or creating a new one.'