<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>andywang (happy)</title>
    <link>https://ruby-china.org/andywang</link>
    <description>呵呵，低调了好多年，出来透透气儿~</description>
    <language>en-us</language>
    <item>
      <title>Rails' polymorphic 使用 integer type</title>
      <description>&lt;p&gt;Rails' polymorphic associations 是很好的一个特性，但是 _type 支持 varchar 类型的，浪费空间，如果使用 integer 类型会节约不少。&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/doliveirakn/polymorphic_integer_type" rel="nofollow" target="_blank"&gt;https://github.com/doliveirakn/polymorphic_integer_type&lt;/a&gt;  推荐
建议 rails 可以引用此特性，就不需要这样 hack 了&lt;/p&gt;</description>
      <author>andywang</author>
      <pubDate>Thu, 04 Jun 2015 15:37:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/25882</link>
      <guid>https://ruby-china.org/topics/25882</guid>
    </item>
  </channel>
</rss>
