X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..d04852fa47f5762f88ab91c2653d2f6224932406:/db/migrate/007_add_relations.rb?ds=sidebyside diff --git a/db/migrate/007_add_relations.rb b/db/migrate/007_add_relations.rb index 258f1c5bc..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[5.0] +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: