Add Cadastre table

This commit is contained in:
Xavier J 2016-01-15 15:28:56 +01:00
parent 0f93aba6bc
commit b5f2163c51
4 changed files with 56 additions and 1 deletions

7
app/models/cadastre.rb Normal file
View file

@ -0,0 +1,7 @@
class Cadastre < ActiveRecord::Base
belongs_to :dossier
def geometry
JSON.parse(read_attribute(:geometry))
end
end