🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #279

Re: RoR type DB

#279
From: Jaroslaw Zabiello
Date: Mon, 13 Nov 2006 10:12
32 lines
1625 bytes
Dnia Tue, 07 Nov 2006 15:36:39 -0600, misiek napisał(a):

> Marcin Mielz.yn'ski wrote:
>> misiek wrote:
>>> I know that is not possible to store in database as :double type, like 
>>> SQL can.
>>> Is some difrent way to have the same result ? I need to store numbers 
>>> information like
>>> 0.12
>>> 0.00
>>> 0.99
>>> 3.34
>>>
>>> tow numbers after point.
>>>
>>> it has to be a number not a String
>>> thanks
>> 
>> decimal ?
> 
> there is no :decimal too

Why English? 

To, czy w (jak się domyślam) migracjach jest :decimal nie ma żadnego
znaczenia. Ważne, aby baza miała obsługę takiego typu. Jeśli generujesz
schemat bazy migracjami to dorzuć jedną kwerendę sql która wymieni pole
double na decimal.

-- 
Jarosław Zabiełło
http://blog.zabiello.com
Technical Details
Message-ID: <1mp7ohg5zebw0$.xvtl2rln3thv$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
References: <eiqsm7$8c5$1@inews.gazeta.pl> <eiqtf3$mft$1@news.onet.pl> <eiqu97$fjm$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
From: Jaroslaw Zabiello <hipertracker@gmail.com>
Newsgroups: pl.comp.lang.ruby
Subject: Re: RoR type DB
Date: Mon, 13 Nov 2006 10:12:48 +0000
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 32
Message-ID: <1mp7ohg5zebw0$.xvtl2rln3thv$.dlg@40tude.net>
References: <eiqsm7$8c5$1@inews.gazeta.pl> <eiqtf3$mft$1@news.onet.pl> <eiqu97$fjm$1@inews.gazeta.pl>
NNTP-Posting-Host: 82.195.148.233
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1163412804 19516 82.195.148.233 (13 Nov 2006 10:13:24 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 13 Nov 2006 10:13:24 +0000 (UTC)
X-User: newsgate2006
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit