<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'migration question' | Pragmatic Forums</title>
    <link>https://forums.pragprog.com/forums/66/topics/409</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>migration question posted by Sam Ruby @ Tue, 06 May 2008 17:58:13 -0000</title>
      <description>&lt;p&gt;In Rails 2.0.2 and prior, migration names started with a number with a minimum length of 3, left padded with zeros as necessary.  So after 009 comes 010; after 099 comes 100; and after 999 comes 1000.  In other words, it does the equivalent of:&lt;/p&gt;


&lt;pre&gt;
sprintf("%03d", n)
&lt;/pre&gt;

	&lt;p&gt;In Rails 2.1, migration names start with a timestamp, so this problem is avoided entirely.&lt;/p&gt;</description>
      <pubDate>Tue, 06 May 2008 17:58:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:409:2738</guid>
      <author>Sam Ruby</author>
      <link>https://forums.pragprog.com/forums/66/topics/409</link>
    </item>
    <item>
      <title>migration question posted by tommy kelly @ Tue, 06 May 2008 13:21:39 -0000</title>
      <description>&lt;p&gt;Stupid silly question, but what happens if you exceed 999 migrations / changes to your database?&lt;/p&gt;


	&lt;p&gt;I ask because each migration&amp;#8217;s name starts with 00x, so what after 999 ;)&lt;/p&gt;</description>
      <pubDate>Tue, 06 May 2008 13:21:39 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:409:2736</guid>
      <author>tommy kelly</author>
      <link>https://forums.pragprog.com/forums/66/topics/409</link>
    </item>
  </channel>
</rss>
