Add references between projects and todos
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
class Project < ApplicationRecord
|
||||
has_many :todos, dependent: :destroy
|
||||
validates :name, presence: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user