Ruby on Rails Wednesday, January 28, 2015

On Wed, Jan 28, 2015 at 8:27 AM, Rodrigo Lueneberg <lists@ruby-forum.com> wrote:
> OK, but if they are the same there would be no need for 2 different
> types under PostgreSQL database. According to the post link provided,

So you prefer to believe a 5-year-old SO post rather than actual
product documentation?

Up to you. Regardless, while I read it as numeric and decimal being
the same thing, you can test that theory yourself. Here's one way:

testdb=# create table things ( name varchar(255), price decimal );
testdb=# \dS things
Table "public.things"
Column | Type | Modifiers
--------+------------------------+-----------
name | character varying(255) |
price | numeric |

This is on a PG 9.3.5 installation, BTW; you didn't mention what
version you're running, so YMMV.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCO6AwZU6vYHDaTiODMPb_%3Dm%2BG0_5sxTd4xv5hot1TeoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment