Skip to content

Commit

Permalink
同姓同名の Author を登録できるように修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto2000 committed Sep 13, 2024
1 parent a9c7696 commit 17d896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/author.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.ransackable_attributes(_auth_object = nil)
%w[name id created_at updated_at]
end

validates :name, presence: true, uniqueness: true
validates :name, presence: true

has_many :book_author_relationship
has_many :book_masters, through: :book_author_relationship
Expand Down

0 comments on commit 17d896e

Please sign in to comment.