We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c7696 commit 17d896eCopy full SHA for 17d896e
app/models/author.rb
@@ -5,7 +5,7 @@ def self.ransackable_attributes(_auth_object = nil)
5
%w[name id created_at updated_at]
6
end
7
8
- validates :name, presence: true, uniqueness: true
+ validates :name, presence: true
9
10
has_many :book_author_relationship
11
has_many :book_masters, through: :book_author_relationship
0 commit comments