class Author < ApplicationRecord
    has_and_belongs_to_many :papers
    
    validates :first_name, presence: true
    validates :last_name, presence: true

    def name 
        "#{first_name} #{last_name}"
    end


end
