This is Devhints.io cheatsheets — a collection of cheatsheets I've written.

# 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: ->

Devhints.io cheatsheets is a collection of cheatsheets I've written over the years. Suggestions and corrections? Send them in. I'm Rico Sta. Cruz. Check out my Today I learned blog for more.