class RuboCop::Cop::Bugcrowd::UuidColumnRequired
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/bugcrowd/uuid_column_required.rb, line 20 def on_send(node) if within_change_or_up_method?(node) && create_table?(node) && !create_table_with_uuid_pk?(node) && !create_table_with_uuid_column?(node.parent) add_offense(node) end end