<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: updating your rails app database from the command line</title>
	<atom:link href="http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/</link>
	<description>All over the world</description>
	<pubDate>Mon, 01 Dec 2008 20:38:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: bobc</title>
		<link>http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-10997</link>
		<dc:creator>bobc</dc:creator>
		<pubDate>Sat, 16 Feb 2008 05:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-10997</guid>
		<description>Thanks, this looks like it will be handy for a cron job to do administrative tasks, such as cleaning up sessions, for example.</description>
		<content:encoded><![CDATA[<p>Thanks, this looks like it will be handy for a cron job to do administrative tasks, such as cleaning up sessions, for example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio Santos</title>
		<link>http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-7229</link>
		<dc:creator>Julio Santos</dc:creator>
		<pubDate>Thu, 25 Oct 2007 13:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-7229</guid>
		<description>Henrik, I agree, the rake approach is better. Thanks for the suggestion. Oh and thanks for the parenthesis thing. It should be fixed now :)</description>
		<content:encoded><![CDATA[<p>Henrik, I agree, the rake approach is better. Thanks for the suggestion. Oh and thanks for the parenthesis thing. It should be fixed now :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-7185</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Wed, 24 Oct 2007 21:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://morgane.com/2007/10/13/updating-your-rails-app-database-from-the-command-line/#comment-7185</guid>
		<description>Rake is probably a better fit. Add a file like lib/tasks/populate.rake containing:

&lt;code&gt;
namespace :db do
  task :populate =&#62; [:environment] do
    User.create!(:name =&#62; "Foo")
    ⋮
  end
end
&lt;/code&gt;

then do &lt;code&gt;rake db:populate&lt;/code&gt;.

Also, "E-mail required)" in your comment form is missing an opening parenthesis. :)</description>
		<content:encoded><![CDATA[<p>Rake is probably a better fit. Add a file like lib/tasks/populate.rake containing:</p>
<p><code><br />
namespace :db do<br />
  task :populate =&gt; [:environment] do<br />
    User.create!(:name =&gt; &#8220;Foo&#8221;)<br />
    ⋮<br />
  end<br />
end<br />
</code></p>
<p>then do <code>rake db:populate</code>.</p>
<p>Also, &#8220;E-mail required)&#8221; in your comment form is missing an opening parenthesis. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 6.007 seconds -->
