<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: checking table existence in Rails&#039; migrations</title>
	<atom:link href="http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/feed/" rel="self" type="application/rss+xml" />
	<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/</link>
	<description>The Life of Me</description>
	<lastBuildDate>Mon, 09 Jan 2012 15:42:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=7963</generator>
	<item>
		<title>By: Graham Swan</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18706</link>
		<dc:creator>Graham Swan</dc:creator>
		<pubDate>Sun, 27 Nov 2011 08:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18706</guid>
		<description>You could also use Rails&#039; built-in force parameter:&lt;br&gt;&lt;br&gt;create_table :some_table, :force =&gt; true do &#124;t&#124;&lt;br&gt;  t.integer user_id, :null =&gt; false&lt;br&gt;end&lt;br&gt;&lt;br&gt;This forces a new table to be created even if a current table with that name exists.</description>
		<content:encoded><![CDATA[<p>You could also use Rails&#39; built-in force parameter:</p>
<p>create_table :some_table, :force =&gt; true do |t|<br />  t.integer user_id, :null =&gt; false<br />end</p>
<p>This forces a new table to be created even if a current table with that name exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raf</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18680</link>
		<dc:creator>Raf</dc:creator>
		<pubDate>Fri, 12 Feb 2010 04:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18680</guid>
		<description>Here is my approach to solve the problem: 
&lt;br&gt;
&lt;br&gt;&lt;a href=&quot;http://github.com/rafmagana/database_utils&quot; rel=&quot;nofollow&quot;&gt;http://github.com/rafmagana/da...&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;after using that code you can do this in a migration:
&lt;br&gt;
&lt;br&gt;:users.table_exists?
&lt;br&gt;&quot;users&quot;.table_exists?
&lt;br&gt;:users.column_exists? :name
&lt;br&gt;
&lt;br&gt;see you</description>
		<content:encoded><![CDATA[<p>Here is my approach to solve the problem: </p>
<p><a href="http://github.com/rafmagana/database_utils" rel="nofollow">http://github.com/rafmagana/da...</a></p>
<p>after using that code you can do this in a migration:</p>
<p>:users.table_exists?<br />
<br />"users".table_exists?<br />
<br />:users.column_exists? :name</p>
<p>see you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raf</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18493</link>
		<dc:creator>Raf</dc:creator>
		<pubDate>Thu, 11 Feb 2010 23:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18493</guid>
		<description>Here is my approach to solve the problem: &lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://github.com/rafmagana/database_utils&quot; rel=&quot;nofollow&quot;&gt;http://github.com/rafmagana/database_utils&lt;/a&gt;&lt;br&gt;&lt;br&gt;after using that code you can do this in a migration:&lt;br&gt;&lt;br&gt;:users.table_exists?&lt;br&gt;&quot;users&quot;.table_exists?&lt;br&gt;:users.column_exists? :name&lt;br&gt;&lt;br&gt;see you</description>
		<content:encoded><![CDATA[<p>Here is my approach to solve the problem: </p>
<p><a href="http://github.com/rafmagana/database_utils" rel="nofollow">http://github.com/rafmagana/database_utils</a></p>
<p>after using that code you can do this in a migration:</p>
<p>:users.table_exists?<br />"users".table_exists?<br />:users.column_exists? :name</p>
<p>see you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patelc75</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18480</link>
		<dc:creator>patelc75</dc:creator>
		<pubDate>Tue, 03 Nov 2009 05:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18480</guid>
		<description>Actually, it should be&lt;br&gt;&lt;code&gt;Model.columns_hash.has_key?(&quot;column_name&quot;)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Actually, it should be<br /><code>Model.columns_hash.has_key?("column_name")</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chirag Patel</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18316</link>
		<dc:creator>Chirag Patel</dc:creator>
		<pubDate>Fri, 20 Feb 2009 10:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18316</guid>
		<description>Here&#039;s something quick to check for a column:&lt;br&gt;&lt;code&gt;Model.columns_hash.has_key(&quot;column_name&quot;)?&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here&#39;s something quick to check for a column:<br /><code>Model.columns_hash.has_key("column_name")?</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean J Abts</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18315</link>
		<dc:creator>Jean J Abts</dc:creator>
		<pubDate>Mon, 16 Feb 2009 07:22:56 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18315</guid>
		<description>you are on my rss reader now</description>
		<content:encoded><![CDATA[<p>you are on my rss reader now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William A Iuchs</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18306</link>
		<dc:creator>William A Iuchs</dc:creator>
		<pubDate>Mon, 02 Feb 2009 08:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18306</guid>
		<description>nice article! nice site. you&#039;re in my rss feed now ;-)&lt;br&gt;keep it up</description>
		<content:encoded><![CDATA[<p>nice article! nice site. you&#39;re in my rss feed now <img src='http://coryforsyth.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <br />keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/comment-page-1/#comment-18291</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Wed, 19 Nov 2008 23:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://coryforsyth.com/2008/03/27/checking-table-existence-in-rails-migrations/#comment-18291</guid>
		<description>Couldn&#039;t you use AR&#039;s &lt;a href=&quot;http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001726&quot;&gt;table_exists?&lt;a/&gt; method?&lt;/a&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Couldn&#39;t you use AR&#39;s <a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001726">table_exists?<a /> method?</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

