Switch to using native rails support for managing Postgres enumerations

This commit is contained in:
Tom Hughes 2023-11-15 18:19:54 +00:00
parent cebda5ffb9
commit f2f0cf1ad9
11 changed files with 14 additions and 37 deletions

View file

@ -1,7 +1,7 @@
class AddRelations < ActiveRecord::Migration[4.2]
def self.up
# enums work like strings but are more efficient
create_enumeration :nwr_enum, %w[Node Way Relation]
create_enum :nwr_enum, %w[Node Way Relation]
# a relation can have members much like a way can have nodes.
# differences: