In this table:
create_table "peripherals", id: :serial, force: :cascade do |t|
t.string "label", limit: 280
end
I limit the label field to 280 characters. I am using PostgreSQL as my database.
This record is saved to the database with no exceptions raised, even though it is longer than 280 characters:
Peripheral.create!(label: ("X" * 700))
Why is my limit of 280 not enforced?