Add id to geo areas

This commit is contained in:
Paul Chavard 2018-10-30 11:05:08 +01:00
parent a005484e38
commit fcdc0114fd
5 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,5 @@
class AddGeoIdToGeoAreas < ActiveRecord::Migration[5.2]
def change
add_column :geo_areas, :geo_reference_id, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_10_10_183331) do
ActiveRecord::Schema.define(version: 2018_10_30_103913) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -347,6 +347,7 @@ ActiveRecord::Schema.define(version: 2018_10_10_183331) do
t.jsonb "geometry"
t.jsonb "properties"
t.bigint "champ_id"
t.string "geo_reference_id"
t.index ["champ_id"], name: "index_geo_areas_on_champ_id"
t.index ["source"], name: "index_geo_areas_on_source"
end