Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

6 lines (5 sloc) 0.166 kB
module.exports = (schema, options) ->
schema.add createdAt: Date, updatedAt: Date
schema.pre 'save', (next) ->
@createdAt ?= @updatedAt = new Date
next()
Jump to Line
Something went wrong with that request. Please try again.