Skip to content

Commit 17d896e

Browse files
committed
同姓同名の Author を登録できるように修正。
1 parent a9c7696 commit 17d896e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/author.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def self.ransackable_attributes(_auth_object = nil)
55
%w[name id created_at updated_at]
66
end
77

8-
validates :name, presence: true, uniqueness: true
8+
validates :name, presence: true
99

1010
has_many :book_author_relationship
1111
has_many :book_masters, through: :book_author_relationship

0 commit comments

Comments
 (0)