models: require belong_to associations on geo_area

This commit is contained in:
Pierre de La Morinerie 2020-07-20 16:50:12 +02:00
parent aff2713032
commit afb1c33154
3 changed files with 7 additions and 5 deletions

View file

@ -12,7 +12,7 @@
# geo_reference_id :string
#
class GeoArea < ApplicationRecord
belongs_to :champ
belongs_to :champ, optional: false
store :properties, accessors: [
:description,