Initial commit
This commit is contained in:
commit
0cec39413f
116 changed files with 9683 additions and 0 deletions
5
app/models/book.rb
Normal file
5
app/models/book.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class Book < ApplicationRecord
|
||||
has_and_belongs_to_many :authors
|
||||
|
||||
scope :published, -> { where(published: true) }
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue