Add basic donation records #18
@ -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
|
||||
|
||||
validates_uniqueness_of :cn
|
||||
validates_length_of :cn, :minimum => 3
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user
maybe add a
dependent: :nullify?Good hint!