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

no integer type available in models #37

Closed
kreopt opened this issue Feb 15, 2013 · 2 comments
Closed

no integer type available in models #37

kreopt opened this issue Feb 15, 2013 · 2 comments

Comments

@kreopt
Copy link

kreopt commented Feb 15, 2013

Storing all numbers in float format is not always good idea in my opinion. I suggest you to add an optional({type:'int'}) integer type.

I am new for GitHub, how can I contribute this project and suggest you some patches?

@jakemwood
Copy link

You can fork this repo, make your changes in the fork, then send a pull request.

@dresende
Copy link
Owner

I just pulled a code to do just this.

db.define("...", {
    prop: { type: "number", rational: false }
});

kapouer added a commit to kapouer/node-orm2 that referenced this issue Dec 11, 2014
kapouer added a commit to kapouer/node-orm2 that referenced this issue Dec 11, 2014
kapouer added a commit to kapouer/node-orm2 that referenced this issue Dec 23, 2014
kapouer added a commit to kapouer/node-orm2 that referenced this issue Jan 20, 2015
kapouer added a commit to kapouer/node-orm2 that referenced this issue Mar 24, 2015
kapouer added a commit to kapouer/node-orm2 that referenced this issue May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants