Skip to content

Array-ness of columns is completely ignored #61

@magni-

Description

@magni-
-- in table `articles`
tags character varying(40)[]

What gets added:

# in model `Article`
validates_length_of :tags, maximum: 40

So instead of limiting each item in the array to 40 characters, we limit the array to 40 items!

A quick fix would be skipping adding validations for attributes where column.array? is true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions