Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 299 Bytes

bookshelf-contrib.md

File metadata and controls

21 lines (14 loc) · 299 Bytes

bookshelf-contrib.Scopes

class Books scopes: published: (q) -> q.where(published: true)

Books.published().fetchAll()

bookshelf-contrib.QueryProxy

Books.query().where(published: true) Books.where(published: true)

bookshelf-contrib.Migration

class Migration up: -> down: ->