Add basic donation records #18

Merged
raucao merged 6 commits from feature/donation_records into master 2020-12-21 14:46:51 +00:00
Showing only changes of commit 26c6c5a3b2 - Show all commits

View File

@ -3,7 +3,7 @@ class User < ApplicationRecord
# Relations
has_many :invitations, dependent: :destroy
has_many :donations
has_many :donations, dependent: :nullify
raucao marked this conversation as resolved Outdated
Outdated
Review

maybe add a dependent: :nullify?

maybe add a `dependent: :nullify`?

Good hint!

Good hint!
validates_uniqueness_of :cn
validates_length_of :cn, :minimum => 3