New Checkpoint model. Update factories. Model specs.

This commit is contained in:
taitus
2017-06-20 15:37:03 +02:00
parent b5da0dfc9a
commit beeb5412d7
7 changed files with 63 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ class Budget
has_many :valuator_assignments, dependent: :destroy
has_many :valuators, through: :valuator_assignments
has_many :comments, as: :commentable
has_many :checkpoints
validates :title, presence: true
validates :author, presence: true