Project and Task models
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Task < ApplicationRecord
|
||||
belongs_to :project
|
||||
|
||||
validates :number, :title, presence: true
|
||||
validates :number, numericality: { greater_than: 0 }
|
||||
|
||||
has_rich_text :description
|
||||
end
|
||||
Reference in New Issue
Block a user