{"author_name":"jitte","type":"rich","version":"1.0","provider_url":"https://hatena.blog","title":" \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3(5)","image_url":null,"blog_url":"https://jitte.hatenadiary.org/","width":"100%","url":"https://jitte.hatenadiary.org/entry/20080108/1199803905","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjitte.hatenadiary.org%2Fentry%2F20080108%2F1199803905\" title=\" \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3(5) - @jitte\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u4ed5\u4e0a\u3052\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u66f8\u304d\u65b9\u30e1\u30e2\u3002Rails 2.0\u306eActiveRecord\u3067\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30d6\u30ed\u30c3\u30af\u306b\u30d6\u30ed\u30c3\u30af\u5f15\u6570\u304c\u6e21\u3055\u308c\u306a\u3044\u3088\u3046\u3060\u3002*1\u53e4\u3044\u30d8\u30eb\u30d7\u306b\u3088\u308b\u3068\u4ee5\u524d\u306f # \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u5834\u5408 # Class Sample < ActiveRecord::Base # validates_presence_of :name # end transaction do |t| s1 = Sample.create(:name => 'n1', :value => 'v1') s2 = Sample.create(:value => 'v2') # error\u2026","height":"190","categories":["Ruby","Rails"],"author_url":"https://blog.hatena.ne.jp/jitte/","published":"2008-01-08 23:51:45","provider_name":"Hatena Blog","blog_title":"@jitte\u306e\u65e5\u8a18"}