OSDN Git Service
(root)
/
twpd
/
master.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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