<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in Agile Web Development with Rails, 3rd Edition | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/66/posts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>relation &amp;quot;schema_migrations_id_seq&amp;quot; does not exist on rake:db:migrate posted by Wayde Gilliam @ Sun, 20 Jul 2008 07:30:26 -0000</title>
      <description>&lt;p&gt;Migrated my rails app from 2.0 to 2.1 and getting this strange error whenever running a migration (using postgres 8.3.1):&lt;/p&gt;


	&lt;p&gt;rake aborted!&lt;br /&gt;PGError: &lt;span class="caps"&gt;ERROR&lt;/span&gt;:  relation &amp;#8220;schema_migrations_id_seq&amp;#8221; does not exist&lt;br /&gt;: &lt;span class="caps"&gt;SELECT&lt;/span&gt; currval(&amp;#8216;schema_migrations_id_seq&amp;#8217;)&lt;/p&gt;


	&lt;p&gt;Any ideas on why and how to resolve?&lt;/p&gt;


	&lt;p&gt;Thanks &amp;#8211; Wayde&lt;/p&gt;</description>
      <pubDate>Sun, 20 Jul 2008 07:30:26 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:707:3711</guid>
      <author>Wayde Gilliam</author>
      <link>http://forums.pragprog.com/forums/66/topics/707</link>
    </item>
    <item>
      <title>Pagination posted by Mikhail Shokhirev @ Sat, 19 Jul 2008 16:30:36 -0000</title>
      <description>&lt;p&gt;The extension of RoR with plugins may be shown by the &amp;#8216;will_paginate&amp;#8217; as an example, because pagination is a &lt;span class="caps"&gt;VERY&lt;/span&gt; common task&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Sat, 19 Jul 2008 16:30:36 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:417:3705</guid>
      <author>Mikhail Shokhirev</author>
      <link>http://forums.pragprog.com/forums/66/topics/417</link>
    </item>
    <item>
      <title>Help with XML posted by Mikhail Shokhirev @ Sat, 19 Jul 2008 16:23:30 -0000</title>
      <description>&lt;p&gt;Stephen, can you give an example of the &lt;span class="caps"&gt;XML&lt;/span&gt; document to be generated and sent?&lt;/p&gt;</description>
      <pubDate>Sat, 19 Jul 2008 16:23:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:599:3704</guid>
      <author>Mikhail Shokhirev</author>
      <link>http://forums.pragprog.com/forums/66/topics/599</link>
    </item>
    <item>
      <title>So what's new? posted by Sam Ruby @ Thu, 17 Jul 2008 17:44:20 -0000</title>
      <description>&lt;p&gt;If you get stuck, comment here.&lt;/p&gt;


	&lt;p&gt;If something confuses you but you eventually figure it out, mark it in the errata.  Even &amp;#8220;user errors&amp;#8221; which are recorded in the errata are treated very seriously.&lt;/p&gt;


	&lt;p&gt;In prior editions, common errors and the solutions are listed in many chapters.  This edition will retain such and even expand it based on errata.&lt;/p&gt;


	&lt;p&gt;That&amp;#8217;s why errata is so important&amp;#8212;I, for one, can&amp;#8217;t always see what is obvious to me that might not be obvious to everybody else.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 17:44:20 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:673:3672</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/673</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by James West @ Thu, 17 Jul 2008 17:27:22 -0000</title>
      <description>&lt;p&gt;Thank you Sam&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 17:27:22 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3671</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by Sam Ruby @ Thu, 17 Jul 2008 15:31:51 -0000</title>
      <description>&lt;p&gt;Just a note that I&amp;#8217;m still here and listening.  I apologize for the delay and am actively working on an update.  More when I have concrete news to report.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 15:31:51 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3667</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by David Jacobs @ Thu, 17 Jul 2008 15:24:11 -0000</title>
      <description>&lt;p&gt;Such a huge lag time is unacceptable.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 15:24:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3666</guid>
      <author>David Jacobs</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by David John Porter @ Thu, 17 Jul 2008 15:23:14 -0000</title>
      <description>&lt;p&gt;Hi James,&lt;/p&gt;


	&lt;p&gt;Last release was June 4th&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m sure it will be ready when it is ready&amp;#8230;.&lt;/p&gt;


	&lt;p&gt;cheers, Dave Porter&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 15:23:14 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3665</guid>
      <author>David John Porter</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by James West @ Thu, 17 Jul 2008 14:25:18 -0000</title>
      <description>&lt;p&gt;Sam! Are you there? It&amp;#8217;s been nearly 2 months since the last release or have I missed something?&lt;/p&gt;</description>
      <pubDate>Thu, 17 Jul 2008 14:25:18 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3663</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>So what's new? posted by James West @ Tue, 15 Jul 2008 08:09:11 -0000</title>
      <description>&lt;p&gt;Alan,&lt;br /&gt;I am new to RoR and I have not seen the other versions of this book so am unable to comment on most of what you ask.&lt;br /&gt;I will however say that this version so far has updated the code for the Depot app to make it work in 2.1&lt;br /&gt;There are still a lot of chapters that have not been updated yet but it has been some time since there was a new release of the book so there should be quite a few changes in the next release.&lt;/p&gt;


	&lt;p&gt;Are you not entitiled to a free upgrade to this book having bought the previous version?&lt;/p&gt;


	&lt;p&gt;Anyway it was the best &#163;15 I ever spent, sometimes it&amp;#8217;s worth just spending the money and this was one of those times for me.&lt;/p&gt;


	&lt;p&gt;I have been able to follow the book with ease, my only problem is that my learning curves are a little flatter than they used to be lol!&lt;/p&gt;


	&lt;p&gt;I doubt this really answers your main questions which I guess will really only be answered by reading it apart from to say that as an experienced programmer this was a gd send to me to help me get my head round Rails 2.1 and I am eagerly awaiting the next release of the pdf&lt;/p&gt;


	&lt;p&gt;Jame West&lt;/p&gt;</description>
      <pubDate>Tue, 15 Jul 2008 08:09:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:673:3629</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/673</link>
    </item>
    <item>
      <title>So what's new? posted by Alan Slater @ Mon, 14 Jul 2008 21:05:03 -0000</title>
      <description>&lt;p&gt;Sell it to me! (A rails novice with the 2nd edition already, thinking of getting the 3rd ed beta in .pdf to get working with right away)&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s two particular questions, but any info and general enthusiasm is welcome:-&lt;/p&gt;


	&lt;p&gt;1) Is the main example still Depot? If so, are there any changes to it other than the neccessary changes for Rails 2? And any plans for additions?&lt;/p&gt;


	&lt;p&gt;2) Is this issue addressed at all: One problem I and a lot of understandably forum-shy people had with the 2nd edition was, some parts don&amp;#8217;t quite contain all the information you need if you don&amp;#8217;t have a solid background in programming.&lt;/p&gt;


	&lt;p&gt;About half of the book is perfect and paced exactly right, even for people like me for whom Rails is our first attempt at anything like real programming. But, about half has gaps that are presumbly obvious and second nature to programmers, and not too hard for the rest of us to grasp even with a half-sentence explanation in context, but almost impossible if those half sentences aren&amp;#8217;t there.&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s hard for me to give examples, but I think most of the places I tripped up were with those aspects of Ruby that &lt;span class="caps"&gt;ARE&lt;/span&gt; like java, php etc (rather than aspects of ruby that aren&amp;#8217;t, which are all explained perfectly). Is this addressed at all in the 3rd edition? Are there any (non-lazy) non-programmers involved in giving feedback?&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jul 2008 21:05:03 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:673:3618</guid>
      <author>Alan Slater</author>
      <link>http://forums.pragprog.com/forums/66/topics/673</link>
    </item>
    <item>
      <title>Phusion Passenger / mod_rails posted by David Gallello @ Mon, 14 Jul 2008 07:22:26 -0000</title>
      <description>&lt;p&gt;For what it&amp;#8217;s worth, I&amp;#8217;ve now deployed two small web applications to a Slicehost slice using Passenger and am pretty impressed with the relative simplicity in which it works.  Average time spent launching a rails app to each slice: about 30 minutes.  I was half-way through Ezra&amp;#8217;s book when I first came across the Passenger gem and I haven&amp;#8217;t looked back (though I still highly recommend Ezra&amp;#8217;s book on Rails deployment&amp;#8230;the half that I did read was superb).  I think the Passenger gem is going to rapidly increase the number of new rails developers for no other reason than it takes the headache out of deploying small web sites.  Whether it&amp;#8217;s ready for prime-time apps is yet to be seen.&lt;/p&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:22:26 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:389:3608</guid>
      <author>David Gallello</author>
      <link>http://forums.pragprog.com/forums/66/topics/389</link>
    </item>
    <item>
      <title>Do you develop stuff locally or on a server? posted by James West @ Sun, 13 Jul 2008 10:54:47 -0000</title>
      <description>&lt;p&gt;Anthony, Have you and your pro checked out the Aptana cloud?&lt;/p&gt;</description>
      <pubDate>Sun, 13 Jul 2008 10:54:47 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:620:3594</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/620</link>
    </item>
    <item>
      <title>Do you develop stuff locally or on a server? posted by Anthony DeFreitas @ Sun, 13 Jul 2008 01:34:04 -0000</title>
      <description>&lt;p&gt;Hey Robert, I&amp;#8217;m a novice as well but I just spent a week shadowing a pro. Git and github.com are the way to go. You both keep repositories of the code on your machines and you push and pull changes to and from github.com to do updates. Textmate and the console is my preference.&lt;/p&gt;</description>
      <pubDate>Sun, 13 Jul 2008 01:34:04 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:620:3593</guid>
      <author>Anthony DeFreitas</author>
      <link>http://forums.pragprog.com/forums/66/topics/620</link>
    </item>
    <item>
      <title>How often is the beta being updated? posted by James West @ Sat, 12 Jul 2008 17:29:24 -0000</title>
      <description>&lt;p&gt;Anybody?&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s been a while since the last version.&lt;/p&gt;


	&lt;p&gt;If anyone has any idea how long it will be for the next version of the book I would love to know&lt;/p&gt;</description>
      <pubDate>Sat, 12 Jul 2008 17:29:24 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:452:3586</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/452</link>
    </item>
    <item>
      <title>Pagination posted by James West @ Fri, 11 Jul 2008 12:31:55 -0000</title>
      <description>&lt;p&gt;I know the book has not been updated yet to cover pagination in rails 2.1 but I would love to know if pagination in 2,1 is effective.&lt;/p&gt;


	&lt;p&gt;everyone seems to point to will paginate as a plug in but I would rather learn the rails way before I use a plug in.&lt;/p&gt;


	&lt;p&gt;Any pointers as to how this is now done in 2,1 would be really appreiated.&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 12:31:55 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:660:3575</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/660</link>
    </item>
    <item>
      <title>Chapter 3: Installing Rails - Keep it! posted by Sam Ruby @ Fri, 11 Jul 2008 10:18:45 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m still new to &lt;span class="caps"&gt;OS X&lt;/span&gt;, and frankly I&amp;#8217;m a bit surprised at how hard basic things are as compared to Ubuntu, but in any case I started from the instructions I found on &lt;a href="http://developer.apple.com/tools/developonrailsleopard.html"&gt;Developing Rails Applications on Mac &lt;span class="caps"&gt;OS X&lt;/span&gt; Leopard&lt;/a&gt; that I found on the Apple Developer Connection website.&lt;/p&gt;


	&lt;p&gt;In a subsequent pass over the book, I&amp;#8217;ll look into adding information on compiling the code for yourself and introduce the notion of not overwriting the system installed versions.&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 10:18:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:411:3573</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/411</link>
    </item>
    <item>
      <title>Chapter 3: Installing Rails - Keep it! posted by Serban Porumbescu @ Fri, 11 Jul 2008 08:58:02 -0000</title>
      <description>&lt;p&gt;Hi Sam.&lt;/p&gt;


	&lt;p&gt;I have a comment and suggestion on section 3.3 Installing on Mac &lt;span class="caps"&gt;OS X&lt;/span&gt;.  The directions as written will certainly work, but I&amp;#8217;m concerned about directly upgrading the versions that ship with Leopard or 10.4.6.  Apple could mess with your installation during a future update or your modifications could affect other applications dependent on Apple&amp;#8217;s versions.&lt;/p&gt;


	&lt;p&gt;I suggest starting with the same section 3.3 from the second edition and updating it to reflect any new information (i.e., Leopard and SQLite3 stuff).  The hivelogic.com directions have been updated for Leopard (  &lt;a href="http://hivelogic.com/articles/2008/02/ruby-rails-leopard"&gt;http://hivelogic.com/articles/2008/02/ruby-rails-leopard&lt;/a&gt;) and for Tiger (&lt;a href="http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx"&gt;http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx&lt;/a&gt;).&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m glad to see this chapter is sticking around.&lt;/p&gt;</description>
      <pubDate>Fri, 11 Jul 2008 08:58:02 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:411:3572</guid>
      <author>Serban Porumbescu</author>
      <link>http://forums.pragprog.com/forums/66/topics/411</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Steve Ross @ Thu, 10 Jul 2008 19:18:36 -0000</title>
      <description>&lt;p&gt;make sure when you migrate to &lt;span class="caps"&gt;VERSION&lt;/span&gt;=5 that you see the drop :payment_types executing. If it isn&amp;#8217;t then that is why the error is being thrown&amp;#8230; the table already exists. You might have to drop the table manually for rails to sync back up with which version you are using of the app and what version the db is on.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 19:18:36 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3555</guid>
      <author>Steve Ross</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Steve Ross @ Thu, 10 Jul 2008 16:06:05 -0000</title>
      <description>&lt;p&gt;The version that creates :payment_types should also contain the drop definition migrate to a previous version (ie: if 5 has the create payment_types then migrate back to 4 while making sure that v5 has drop :payment_types defined) then migrate back to 6 or whatever one you want.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 16:06:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3552</guid>
      <author>Steve Ross</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Bill Thayer @ Thu, 10 Jul 2008 15:31:05 -0000</title>
      <description>&lt;p&gt;I even tried going back to &lt;span class="caps"&gt;VERSION&lt;/span&gt;=5 but got the same result:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;

C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;rake db:migrate VERSION=5
(in C:/InstantRails-2.0-win/rails_apps/depot)
== 6 CreateLineItems: reverting ===============================================
-- drop_table(:line_items)
   -&amp;gt; 0.0470s
== 6 CreateLineItems: reverted (0.0470s) ======================================

C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;rake db:migrate
(in C:/InstantRails-2.0-win/rails_apps/depot)
== 6 CreateLineItems: migrating ===============================================
-- create_table(:line_items)
   -&amp;gt; 0.0470s
== 6 CreateLineItems: migrated (0.0470s) ======================================

== 7 CreatePaymentTypes: migrating ============================================
-- create_table(:payment_types)
rake aborted!
Mysql::Error: Table 'payment_types' already exists: CREATE TABLE `payment_types` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `label` varchar(255) DEF
AULT NULL, `value` varchar(255) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL) ENGINE=InnoDB

(See full trace by running task with --trace)

C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:31:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3551</guid>
      <author>Bill Thayer</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Bill Thayer @ Thu, 10 Jul 2008 15:17:47 -0000</title>
      <description>&lt;p&gt;Here&amp;#8217;s my cmd window output:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;rake db:migrate VERSION=6
(in C:/InstantRails-2.0-win/rails_apps/depot)

C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;rake db:migrate --trace
(in C:/InstantRails-2.0-win/rails_apps/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== 7 CreatePaymentTypes: migrating ============================================
-- create_table(:payment_types)
rake aborted!
Mysql::Error: Table 'payment_types' already exists: CREATE TABLE `payment_types` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `label` varchar(255) DEF
AULT NULL, `value` varchar(255) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL) ENGINE=InnoDB
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:281:in `execute'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/schema_statements.rb:104:in `create_table'

C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:416:in `create_table'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:285:in `send'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:285:in `method_missing'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:265:in `say_with_time'
C:/InstantRails-2.0-win/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:265:in `say_with_time'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:281:in `method_missing'
./db/migrate//007_create_payment_types.rb:3:in `up_without_benchmarks'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `send'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `migrate'
C:/InstantRails-2.0-win/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:219:in `migrate'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:348:in `migrate'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:339:in `each'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:339:in `migrate'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:307:in `up'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:298:in `migrate'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
C:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
C:/InstantRails-2.0-win/ruby/bin/rake:19:in `load'
C:/InstantRails-2.0-win/ruby/bin/rake:19

C:\InstantRails-2.0-win\rails_apps\depot&amp;gt;&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 15:17:47 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3550</guid>
      <author>Bill Thayer</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Bill Thayer @ Thu, 10 Jul 2008 14:50:24 -0000</title>
      <description>&lt;p&gt;Thank you James &amp;#38; Steve.&lt;/p&gt;


	&lt;p&gt;My bad. After going through my command history I see I had the syntax wrong. I typed:&lt;/p&gt;


	&lt;p&gt;depot&amp;gt;rake db:migrate version = 6&lt;/p&gt;


	&lt;p&gt;it should have been&lt;/p&gt;


	&lt;p&gt;depot&amp;gt;rake db:migrate &lt;span class="caps"&gt;VERSION&lt;/span&gt;=6&lt;/p&gt;


	&lt;p&gt;I guess the caps and no spaces matter for the argument &lt;span class="caps"&gt;VERSION&lt;/span&gt;=6.&lt;/p&gt;


	&lt;p&gt;My next post will be the output from my console after running &amp;gt;rake db:migrate&amp;#8212;trace&lt;/p&gt;


	&lt;p&gt;Here is my 007_create_payment_types.rb file:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
class CreatePaymentTypes &amp;lt; ActiveRecord::Migration
  def self.up
    create_table :payment_types do |t|
      t.string :label
      t.string :value

      t.timestamps
    end
  end

  def self.down
    drop_table :payment_types
  end
end&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 14:50:24 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3549</guid>
      <author>Bill Thayer</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by Steve Ross @ Thu, 10 Jul 2008 14:28:30 -0000</title>
      <description>&lt;p&gt;You need to make sure that the migration has&lt;/p&gt;


	&lt;p&gt;def self.down
    drop_table :payment_types
  end&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 14:28:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3547</guid>
      <author>Steve Ross</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
    <item>
      <title>Undoing a migration.... posted by James West @ Thu, 10 Jul 2008 02:04:41 -0000</title>
      <description>&lt;p&gt;It seems to me as though your version 6 migration is the migration that created the tables. If you want to remove the table then migrate to the version before that.&lt;/p&gt;


	&lt;p&gt;I tend to use the roll back migration rather than a specific version number but I guess it all depends on what you actually want to achieve.&lt;/p&gt;


	&lt;p&gt;Anyway I guess you should look at the migration files that you have and migrate to the one prior to the version 6.&lt;/p&gt;


	&lt;p&gt;I have not explored the migrate down options yet and this may well prove to be another alternative for achieving the same thing.&lt;/p&gt;


	&lt;p&gt;Hope this helps&lt;/p&gt;


	&lt;p&gt;James&lt;/p&gt;</description>
      <pubDate>Thu, 10 Jul 2008 02:04:41 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:652:3538</guid>
      <author>James West</author>
      <link>http://forums.pragprog.com/forums/66/topics/652</link>
    </item>
  </channel>
</rss>
