<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>images/b_cover.jpg</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>images/cover.jpg</filename>
    </modified>
    <modified>
      <diff>@@ -19,11 +19,7 @@
 
 ##&#33268;&#35874;
 
-&#24863;&#35874;Marcos Tapaj&#243;s,&#22914;&#26524;&#27809;&#26377;&#20182;&#65292;&#25105;&#20204;&#21040;&#29616;&#22312;&#32943;&#23450;&#30475;&#19981;&#21040;&#36825;&#26412;&#20070;&#65307;&#24863;&#35874;Daniel Lopes&#32473;&#26412;&#20070;&#21046;&#20316;&#20102;&#28418;&#20142;&#30340;&#23553;&#38754;&#65307;
-
-&#36824;&#26377;Ruby on Rails Brazilian&#20013;&#37027;&#20123;&#30452;&#25509;&#25110;&#32773;&#38388;&#25509;&#32473;&#26412;&#20070;&#25552;&#20379;&#24110;&#21161;&#30340;&#26379;&#21451;&#20204;&#65292;&#24744;&#20204;&#30340;&#35780;&#35770;&#21644;&#24314;&#35758;&#37117;&#24357;&#36275;&#29645;&#36149;&#65292;&#27491;&#20687;&#25105;&#20197;&#24448;&#35828;&#30340;&#19968;&#26679;&#65292;Rails&#20013;&#26368;&#31934;&#21326;&#30340;&#26159;&#20854;&#20805;&#28385;&#28608;&#24773;&#12289;&#21019;&#36896;&#21147;&#21644;&#20998;&#20139;&#31934;&#31070;&#30340;&#31038;&#21306;&#65307;
-
-&#36824;&#26377;chinaonrails.com&#31038;&#21306;&#20013;&#30340;&#26379;&#21451;&#20204;&#65292;&#27491;&#26159;&#22823;&#23478;&#30340;&#36763;&#21220;&#24037;&#20316;&#65292;&#25165;&#20351;&#24471;&#25105;&#20204;&#33021;&#36825;&#20040;&#30701;&#30340;&#26102;&#38388;&#20869;&#21363;&#21487;&#23436;&#25104;&#32763;&#35793;&#65292;&#35874;&#35874;&#20320;&#20204;&#12290;
+&#24863;&#35874;Marcos Tapaj&#243;s,&#22914;&#26524;&#27809;&#26377;&#20182;&#65292;&#25105;&#20204;&#21040;&#29616;&#22312;&#32943;&#23450;&#30475;&#19981;&#21040;&#36825;&#26412;&#20070;&#65307;&#24863;&#35874;Daniel Lopes&#32473;&#26412;&#20070;&#21046;&#20316;&#20102;&#28418;&#20142;&#30340;&#23553;&#38754;&#65307;&#36824;&#26377;Ruby on Rails Brazilian&#20013;&#37027;&#20123;&#30452;&#25509;&#25110;&#32773;&#38388;&#25509;&#32473;&#26412;&#20070;&#25552;&#20379;&#24110;&#21161;&#30340;&#26379;&#21451;&#20204;&#65292;&#24744;&#20204;&#30340;&#35780;&#35770;&#21644;&#24314;&#35758;&#37117;&#24357;&#36275;&#29645;&#36149;&#65292;&#27491;&#20687;&#25105;&#20197;&#24448;&#35828;&#30340;&#19968;&#26679;&#65292;Rails&#20013;&#26368;&#31934;&#21326;&#30340;&#26159;&#20854;&#20805;&#28385;&#28608;&#24773;&#12289;&#21019;&#36896;&#21147;&#21644;&#20998;&#20139;&#31934;&#31070;&#30340;&#31038;&#21306;&#65307;&#36824;&#26377;chinaonrails.com&#31038;&#21306;&#20013;&#30340;&#26379;&#21451;&#20204;&#65292;&#27491;&#26159;&#22823;&#23478;&#30340;&#36763;&#21220;&#24037;&#20316;&#65292;&#25165;&#20351;&#24471;&#25105;&#20204;&#33021;&#36825;&#20040;&#30701;&#30340;&#26102;&#38388;&#20869;&#21363;&#21487;&#23436;&#25104;&#32763;&#35793;&#65292;&#35874;&#35874;&#20320;&#20204;&#12290;
 
 ##&#20013;&#25991;&#35793;&#32773;
 
@@ -32,7 +28,7 @@
 **IceskYsl**
 [http://iceskysl.1sters.com/](http://iceskysl.1sters.com/)
 
-&#31532;1&#31456;(Introduction)&#65292;&#31532;9&#31456;(Rake Tasks, Plugins and Scripts) 
+&#31532;1&#31456;(Introduction)&#65292;&#31532;9&#31456;(Rake Tasks, Plugins and Scripts)&#65292;
 &#31532;11&#31456;(Ruby 1.9)&#65292;&#31532;14&#31456;(Additional Information). 
 
 **jesse.cai**</diff>
      <filename>text/0/0_Title.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 ## Increment &#21644; decrement
 
-**ActiveRecord**&#30340;&#26041;&#27861;**increment**,**increment!**,**decrement**&#21644;**descriment!**&#29616;&#22312;&#25903;&#25345;&#19968;&#20010;&#26032;&#30340;&#21487;&#36873;&#21442;&#25968;&#12290;&#20043;&#21069;&#29256;&#26412;&#30340;Rails&#20013;&#20320;&#21487;&#20197;&#36890;&#36807;&#36825;&#20123;&#26041;&#27861;&#25351;&#23450;&#30340;&#23646;&#24615;&#20540;&#21152;1&#25110;&#20943;1&#12290;&#22312;Rails 2.1&#20013;&#65292;&#20320;&#21487;&#20197;&#25351;&#23450;&#35201;&#22686;&#21152;&#25110;&#32773;&#20943;&#23569;&#30340;&#20540;&#65292;&#20687;&#36825;&#26679;&#65306;
+**ActiveRecord**&#30340;&#26041;&#27861;**increment**,**increment!**,**decrement**&#21644;**decrement!**&#29616;&#22312;&#25903;&#25345;&#19968;&#20010;&#26032;&#30340;&#21487;&#36873;&#21442;&#25968;&#12290;&#20043;&#21069;&#29256;&#26412;&#30340;Rails&#20013;&#20320;&#21487;&#20197;&#36890;&#36807;&#36825;&#20123;&#26041;&#27861;&#25351;&#23450;&#30340;&#23646;&#24615;&#20540;&#21152;1&#25110;&#20943;1&#12290;&#22312;Rails 2.1&#20013;&#65292;&#20320;&#21487;&#20197;&#25351;&#23450;&#35201;&#22686;&#21152;&#25110;&#32773;&#20943;&#23569;&#30340;&#20540;&#65292;&#20687;&#36825;&#26679;&#65306;
 
 	player1.increment!(:points, 5)
 	player2.decrement!(:points, 2)</diff>
      <filename>text/01_ActiveRecord/04_increment_and_decrement.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -2,28 +2,25 @@
                        
 &#29616;&#22312;&#22312;&#21019;&#24314;&#25110;&#32773;&#26356;&#25913;&#25972;&#22411;&#21015;&#30340;&#26102;&#20505;**ActiveRecord**&#30340;**MySQL**&#36866;&#37197;&#22120;&#20250;&#22788;&#29702;&#30340;&#26356;&#20026;&#32874;&#26126;&#65292;&#23427;&#21487;&#20197;&#26681;&#25454;**:limit**&#23646;&#24615;&#30830;&#23450;&#19968;&#20010;&#23383;&#27573;&#30340;&#31867;&#22411;&#24212;&#35813;&#26159;**smallint**&#65292;**int**&#36824;&#26159;**bigint**&#12290;&#25105;&#20204;&#26469;&#30475;&#20010;&#23454;&#29616;&#19978;&#36848;&#21151;&#33021;&#30340;&#20363;&#23376;&#65306;
 
-	case limit
-	when 0..3
-	  &quot;smallint(#{limit})&quot;
-	when 4..8
-	  &quot;int(#{limit})&quot;
-	when 9..20
-	  &quot;bigint(#{limit})&quot;
-	else
-	  'int(11)'
-	end
+  case limit
+  when 1; 'tinyint'
+  when 2; 'smallint'
+  when 3; 'mediumint'
+  when 4, nil; 'int(11)'
+  else; 'bigint'
+  end
 
 &#29616;&#22312;&#25105;&#20204;&#22312;**migration**&#20013;&#20351;&#29992;&#23427;&#65292;&#30475;&#30475;&#27599;&#19968;&#20010;&#23383;&#27573;&#24212;&#35813;&#21305;&#37197;&#20160;&#20040;&#31867;&#22411;&#65306;
 
 	create_table :table_name, :force =&gt; true do |t|
 
-	  # 0 - 3: smallint
+	  # 2: smallint
 	  t.integer :column_one, :limit =&gt; 2 # smallint(2)
 
-	  # 4 - 8: int
-	  t.integer :column_two, :limit =&gt; 6 # int(6)
+	  # 4: int(11)
+	  t.integer :column_two, :limit =&gt; 4 # int(11)
 
-	  # 9 - 20: bigint
+	  # 5 - : bigint
 	  t.integer :column_three, :limit =&gt; 15 # bigint(15)
 
 	  # if :limit is not informed: int(11)</diff>
      <filename>text/01_ActiveRecord/16_mysql.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d3abefd01284de4b01fbed6fd7430af504f077f6</id>
    </parent>
  </parents>
  <author>
    <name>Libin Pan</name>
    <email>libin.pan@gmail.com</email>
  </author>
  <url>http://github.com/libin/rails21-book-cn/commit/04d8804cc6a8caf256eec2d37cd0e9c98e2957e9</url>
  <id>04d8804cc6a8caf256eec2d37cd0e9c98e2957e9</id>
  <committed-date>2008-06-24T21:09:33-07:00</committed-date>
  <authored-date>2008-06-24T21:09:33-07:00</authored-date>
  <message>New Cover! Thanks Carlos!</message>
  <tree>8fee526398a2878ff6aadd9a5df9d0a3b65d75cf</tree>
  <committer>
    <name>Libin Pan</name>
    <email>libin.pan@gmail.com</email>
  </committer>
</commit>
