Add geo areas schema
This commit is contained in:
parent
b2c1a5b1c7
commit
202e055b7b
2 changed files with 26 additions and 1 deletions
14
db/migrate/20181010183331_create_geo_areas.rb
Normal file
14
db/migrate/20181010183331_create_geo_areas.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue