demarches-normaliennes/db/migrate/20160115135025_create_cadastre_table.rb
2016-01-15 15:28:56 +01:00

18 lines
444 B
Ruby

class CreateCadastreTable < ActiveRecord::Migration
def change
create_table :cadastres do |t|
t.string :surface_intersection
t.float :surface_parcelle
t.string :numero
t.integer :feuille
t.string :section
t.string :code_dep
t.string :nom_com
t.string :code_com
t.string :code_arr
t.text :geometry
end
add_reference :cadastres, :dossier, references: :dossiers
end
end