class BookCategory < ApplicationRecord
  
  belongs_to :book
  belongs_to :category
  
  validates: :book_id, :category_id, presence: :true

end

class BookCategory < ApplicationRecord
  
  belongs_to :book
  belongs_to :category
  
  validates :book_id, :category_id, presence: :true

end

Fix syntax error in validations
Fix syntax error in validations
