moduleRuboCop# Module containing helper methods for writing migration cops.moduleMigrationHelpers# Returns true if the given node originated from the db/migrate directory.defin_migration?(node)File.dirname(node.location.expression.source_buffer.name).end_with?('db/migrate')endendend