search for: contrainst

Displaying 3 results from an estimated 3 matches for "contrainst".

Did you mean: contrains
2006 May 09
6
Still Stumbled on First things in trying RubyOnRails
...he same old problems occurred at the point when ?Edit? was introduced. Introducing the field ?category_id? and changing C:\InstantRails-1.0\rails_apps\cookbook2\app\models\category and C:\InstantRails-1.0\rails_apps\cookbook2\app\models\recipe is a bit like introducing a field with foreign-key contrainst. Would mySQL automatically fill up this field in the exisitng records when the amended codes are run? If not, how do I fill in the blanks? The tutorial had been there for many months, and I am sure many people had taken it and there was no complaint. So, what did I do wrong? Why me? I would b...
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/ i don''t think this will work. in postgresql the field ''now'' is pinned to the SAME TIME for the duration of a transaction. eg. if you do begin transaction; insert into t values(42, ''now''); # sleep one minute
2005 Mar 04
3
Boolean values
...t;> b) objects that you *just* saved? Again, if we can get some kind of >> :reload_after_save business going on, the question becomes moot. > > neither really works. again, the problem is that not so much that you are > doing reports on the unsaved objects, but that you may have contrainsts set up > in the db that rely on the ''now'' field actually being ''now'' and not some ruby > string plugged in instead. i know it''s hard to imagine use cases but trust me > there is a whole world of them, read > http://www.codeforpeople.com/lib...