X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbd88d893f3c3fce9cafd666b94396988646d81f..43a45e16585c399139e3b3a062fd8b1195527a5b:/db/migrate/007_add_relations.rb diff --git a/db/migrate/007_add_relations.rb b/db/migrate/007_add_relations.rb index 12684abc8..29ba7ee38 100644 --- a/db/migrate/007_add_relations.rb +++ b/db/migrate/007_add_relations.rb @@ -1,9 +1,7 @@ -require "migrate" - -class AddRelations < ActiveRecord::Migration +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: