Thank. Don´t need to say anything else. Indeed it is not rails fault.
PostgreSQL 9.3.5 on x86_64-unknown-linux-gnu, compiled by gcc
(Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit
Hassan Schroeder wrote in post #1167348:
> 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
--
Posted via http://www.ruby-forum.com/.
--
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/6505e5293b145072ab495d5405999694%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment