OSDN Git Service

Regular updates
[twpd/master.git] / bookshelf-contrib.md
1 # bookshelf-contrib.Scopes
2 #
3 class Books
4   scopes:
5     published: (q) -> q.where(published: true)
6
7 Books.published().fetchAll()
8
9
10 # bookshelf-contrib.QueryProxy
11 #
12 Books.query().where(published: true)
13 Books.where(published: true)
14
15 # bookshelf-contrib.Migration
16 class Migration
17   up: ->
18   down: ->
19
20
21