Add geo areas schema

This commit is contained in:
Paul Chavard 2018-10-16 14:00:52 +03:00
parent b2c1a5b1c7
commit 202e055b7b
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,14 @@
class CreateGeoAreas < ActiveRecord::Migration[5.2]
def change
create_table :geo_areas do |t|
t.string :source, index: true
t.jsonb :geometry
t.jsonb :properties
t.references :champ, foreign_key: true, index: true
end
add_column :types_de_champ, :options, :jsonb
end
end