books edition by admin
This commit is contained in:
parent
5095f63fd7
commit
e36cc36947
10 changed files with 119 additions and 20 deletions
|
@ -4,5 +4,4 @@ class Book < ApplicationRecord
|
|||
scope :published, -> { where(published: true) }
|
||||
validates :title, presence: true
|
||||
validates :price, presence: true
|
||||
validates :published, presence: true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue