Add Boards

This commit is contained in:
riggraz
2019-08-22 17:09:13 +02:00
parent ecc0d1cb27
commit 33ba4771d7
16 changed files with 193 additions and 4 deletions

4
app/models/board.rb Normal file
View File

@@ -0,0 +1,4 @@
class Board < ApplicationRecord
validates :name, presence: true, uniqueness: true
validates :description, length: { in: 0..1024 }, allow_nil: true
end