Add map locations. Each map location can belongs to proposal or budget investment.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-07 11:10:38 +02:00
parent 6c1d1c2cde
commit 5956207a00
14 changed files with 119 additions and 17 deletions

View File

@@ -27,6 +27,8 @@ class Budget
has_many :valuators, through: :valuator_assignments
has_many :comments, as: :commentable
has_many :milestones
has_one :map_location
accepts_nested_attributes_for :map_location
validates :title, presence: true
validates :author, presence: true