demarches-normaliennes/db/migrate/20181010183331_create_geo_areas.rb

15 lines
314 B
Ruby
Raw Normal View History

2018-10-16 13:00:52 +02:00
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