Initial commit

This commit is contained in:
Stanislav Kolotinskiy 2021-03-19 17:31:38 +02:00
commit 0cec39413f
116 changed files with 9683 additions and 0 deletions

5
app/models/book.rb Normal file
View file

@ -0,0 +1,5 @@
class Book < ApplicationRecord
has_and_belongs_to_many :authors
scope :published, -> { where(published: true) }
end