class BookAuthorType
include Mongoid::Document
include Mongoid::Timestamps
field :title, type: String, localize: true
has_and_belongs_to_many :books
has_and_belongs_to_many :book_authors
end