{"title":"Rails 3.1 \u306e migration \u306e\u5909\u66f4\u70b9\u306b\u3064\u3044\u3066","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/willnet/","published":"2011-05-10 01:38:30","description":"\u307e\u305f\u307e\u305fRails 3.1 \u30cd\u30bf\u3067\u3059\u3002Rails 3.1 \u3067\u306f migration \u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5909\u308f\u308a\u307e\u3057\u305f\u3002 rails g model blog title:string body:text \u3068\u3057\u305f\u3068\u304d\u3001Rails 3.0 \u3067\u306f\u4e0b\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059 class CreateBlogs < ActiveRecord::Migration def self.up create_table :blogs do |t| t.string :title t.text :body t.timestamps end end def self.down drop_table \u2026","type":"rich","url":"https://blog.willnet.in/entry/20110510/1305045510","blog_title":"\u304a\u3082\u3057\u308dweb\u30b5\u30fc\u30d3\u30b9\u958b\u767a\u65e5\u8a18","width":"100%","provider_name":"Hatena Blog","categories":["rails"],"author_name":"willnet","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.willnet.in%2Fentry%2F20110510%2F1305045510\" title=\"Rails 3.1 \u306e migration \u306e\u5909\u66f4\u70b9\u306b\u3064\u3044\u3066 - \u304a\u3082\u3057\u308dweb\u30b5\u30fc\u30d3\u30b9\u958b\u767a\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>","image_url":null,"blog_url":"https://blog.willnet.in/","height":"190"}