Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created_at and updated_at fields #17

Open
jrf0110 opened this issue Oct 25, 2013 · 0 comments
Open

created_at and updated_at fields #17

jrf0110 opened this issue Oct 25, 2013 · 0 comments

Comments

@jrf0110
Copy link
Owner

jrf0110 commented Oct 25, 2013

It would be fairly trivial to add this as an option to dirac schemas:

{
  name: 'users'
, createdAt: false // false to disable
, createdAt: 'createdAt' // string to provide your own name default: created_at
, updatedAt: 'updated_at'
}

Unless specified otherwise, dirac will add created_at and updated_at fields to all of your schemas, and maintain updated_at for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant