[Jifty-commit] r2274 - jifty/trunk/lib/Jifty/Manual

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Dec 2 23:38:01 EST 2006


Author: audreyt
Date: Sat Dec  2 23:38:01 2006
New Revision: 2274

Modified:
   jifty/trunk/lib/Jifty/Manual/Upgrading.pod

Log:
* Jifty::Manual::Upgrading - Remove the now-obsoleted claim that one has
  to "use" model classes before renaming it.

Modified: jifty/trunk/lib/Jifty/Manual/Upgrading.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Upgrading.pod	(original)
+++ jifty/trunk/lib/Jifty/Manual/Upgrading.pod	Sat Dec  2 23:38:01 2006
@@ -58,17 +58,16 @@
 
 =head3 Renaming a column
 
-To rename a column use C<rename> inside your C<since>.  You will also
-have to use the model class at the top of Upgrade.pm so Jifty can
-access it's schema definition.
+To rename a column, simply call C<rename> inside your C<since> code block:
 
-use MyApp::Model::User;
+    use MyApp::Model::User;
 
-since '0.61' => sub {
-  rename (table => 'MyApp::Model::User', 
-	  column => 'zip', 
-	  to => 'postcode'
-	 );
-};
+    since '0.6.1' => sub {
+        rename(
+            table   => 'MyApp::Model::User', 
+            column  => 'zip', 
+            to      => 'postcode'
+        );
+    };
 
 =head3 Migrating data


More information about the Jifty-commit mailing list