bookstore/app/models/author.rb

7 lines
147 B
Ruby
Raw Permalink Normal View History

2021-03-22 03:16:29 +01:00
# frozen_string_literal: true
2021-03-19 17:31:38 +02:00
class Author < ApplicationRecord
2021-03-21 17:06:54 +01:00
validates :first_name, presence: true
validates :last_name, presence: true
2021-03-19 17:31:38 +02:00
end