Article View: pl.comp.lang.ruby
Article #1099migracja i typ boolean
From: MaxZorin
Date: Mon, 26 May 2008 09:10
Date: Mon, 26 May 2008 09:10
14 lines
1229 bytes
1229 bytes
Proszę o pomoc w takim temacie: jest pole tabeli (mysql) określone w taki sposób (oczywiście są też inne pola): t.boolean :is_experiment, :default => true jeśli jest true rekord w migracji zostaje stworzony, jeśli dam false - nie ma rekordu Identyczna sytuacja jest jeśli dam "jawnie" przy tworzeniu rekordu do zrozumienia, że ma być tam false. Nie pomagają też 1 i 0 ani żadne mniej lub bardziej durne pomysły. Co robić?
Technical Details
Message-ID:
<g1dv4m$74k$1@nemesis.news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: MaxZorin <maxorin@poczta.onet.pl> Newsgroups: pl.comp.lang.ruby Subject: migracja i typ boolean Date: Mon, 26 May 2008 11:10:52 +0200 Organization: TP - http://www.tp.pl/ Lines: 14 Message-ID: <g1dv4m$74k$1@nemesis.news.neostrada.pl> NNTP-Posting-Host: 217.96.16.46 Mime-Version: 1.0 X-Trace: nemesis.news.neostrada.pl 1211793366 7316 217.96.16.46 (26 May 2008 09:16:06 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Mon, 26 May 2008 09:16:06 +0000 (UTC) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit