]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid using live models in old migrations
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Jul 2019 09:52:02 +0000 (11:52 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 17 Jul 2019 09:52:02 +0000 (11:52 +0200)
Instead, we define models in the migrations themselves. This ensures that
column names etc match the state of the database during the migration,
not the current live version of the model.


No differences found