Switch to using native rails support for managing Postgres enumerations
This commit is contained in:
parent
cebda5ffb9
commit
f2f0cf1ad9
11 changed files with 14 additions and 37 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue