Add model ModuleAPICarto
This commit is contained in:
parent
6a471fe867
commit
8130e7d155
6 changed files with 35 additions and 1 deletions
7
app/models/module_api_carto.rb
Normal file
7
app/models/module_api_carto.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class ModuleAPICarto < ActiveRecord::Base
|
||||
enum name: {'quartiers_prioritaires' => 'quartiers_prioritaires'}
|
||||
|
||||
belongs_to :procedure
|
||||
|
||||
validates :name, presence: true, allow_blank: false, allow_nil: false
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue