]> git.openstreetmap.org Git - rails.git/commit
Remove default values from id columns
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Feb 2022 15:22:37 +0000 (15:22 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Feb 2022 15:22:37 +0000 (15:22 +0000)
commitcc99d8169f9c73a2076285a86f139fe1e9a92a06
tree4ba204cecb77fdfb167f5a8540ce0bbe3776c73b
parent172a71e3f242f74a6eb1f7bb45fb4d5f3ddff5e7
Remove default values from id columns

In both the case of primary keys, and also foreign key references,
there's no need to set a default value.

This doesn't have a big impact in routine situations, but can be
very confusing when debugging corner cases.
db/migrate/20220223140543_remove_id_defaults.rb [new file with mode: 0644]
db/structure.sql