X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..43a45e16585c399139e3b3a062fd8b1195527a5b:/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: