<?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: Why Ruby on Rails Migrations Don&#8217;t Work</title>
	<atom:link href="http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/</link>
	<description>programming, databases and other IT something</description>
	<lastBuildDate>Thu, 29 Jul 2010 03:12:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MunkiPhD</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-983</link>
		<dc:creator>MunkiPhD</dc:creator>
		<pubDate>Thu, 29 Jul 2010 03:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-983</guid>
		<description>Simon, although I agree with you that the missing features of migrations are a big issue, Jon nailed it when he said that migrations do &#039;95% of the stuff.&#039;  Migrations are a great starting point and tracking mechanism for your database changes - but it&#039;s not the end all be all.  

A lot of databases have many simple tables that migrations work fine for.  Even though you will have to go back and write some SQL code to insert Foreign Keys and such, it&#039;s code you would have had to write regardless - except now you&#039;ve just cut out a lot of the tedious parts. The issue comes in with how do we make it easier to implement simple yet necessary things such AS foreign keys.

For the developers who neglect the database/datastore - then those are very, VERY uninformed developers.  You can argue that the database IS the application. Without data, you&#039;ve got nothing.  If a developer doesn&#039;t know SQL (at least the very basic), then he&#039;s probably a drag and drop designer, not a developer.

Although the criticisms are well deserved of migrations, dismissing them is beyond stupid.  Instead of the pointless &quot;script kiddies&quot; banter, people should look at migrations and say &quot;hmm, this isn&#039;t a bad idea.  How can we make this better?&quot;   I&#039;ve seen my share of &quot;professionals&quot; who don&#039;t know anything (e.g. attaching a database). I believe migrations are a step in the right direction for making our work easier and cutting out a lot of the repetitive tasks.  Is it perfect? No.  When someone out there decides to polish it up, and call it something like dbBuilder and it becomes a widely used pattern/protocol/software/etc, I wouldn&#039;t be the least bit surprised.

And no, outside of small hobby projects, I&#039;m new to Rails.  I&#039;m on the Microsoft enterprise side of things for my day job.</description>
		<content:encoded><![CDATA[<p>Simon, although I agree with you that the missing features of migrations are a big issue, Jon nailed it when he said that migrations do &#8216;95% of the stuff.&#8217;  Migrations are a great starting point and tracking mechanism for your database changes &#8211; but it&#8217;s not the end all be all.  </p>
<p>A lot of databases have many simple tables that migrations work fine for.  Even though you will have to go back and write some SQL code to insert Foreign Keys and such, it&#8217;s code you would have had to write regardless &#8211; except now you&#8217;ve just cut out a lot of the tedious parts. The issue comes in with how do we make it easier to implement simple yet necessary things such AS foreign keys.</p>
<p>For the developers who neglect the database/datastore &#8211; then those are very, VERY uninformed developers.  You can argue that the database IS the application. Without data, you&#8217;ve got nothing.  If a developer doesn&#8217;t know SQL (at least the very basic), then he&#8217;s probably a drag and drop designer, not a developer.</p>
<p>Although the criticisms are well deserved of migrations, dismissing them is beyond stupid.  Instead of the pointless &#8220;script kiddies&#8221; banter, people should look at migrations and say &#8220;hmm, this isn&#8217;t a bad idea.  How can we make this better?&#8221;   I&#8217;ve seen my share of &#8220;professionals&#8221; who don&#8217;t know anything (e.g. attaching a database). I believe migrations are a step in the right direction for making our work easier and cutting out a lot of the repetitive tasks.  Is it perfect? No.  When someone out there decides to polish it up, and call it something like dbBuilder and it becomes a widely used pattern/protocol/software/etc, I wouldn&#8217;t be the least bit surprised.</p>
<p>And no, outside of small hobby projects, I&#8217;m new to Rails.  I&#8217;m on the Microsoft enterprise side of things for my day job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-933</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 18 Jul 2010 21:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-933</guid>
		<description>@jon
Sorry for that long time when your comment was waiting to be published, but I was on holidays, just without any network connection :).

I agree that migrations are helpful, especially in the beginning of a project. When you have so less data that no one notices dropping a database and recreating the database from a dump.

Doing things manually means that normal rake db:something doesn&#039;t work. Last time I made my own sql in a rails migration, I noticed that later rake db:schema:dump doesn&#039;t load that changes to a file. So once using your own sql, you have to remember that and later make dumps without rake db:schema:dump &amp;&amp; load. Maybe you know some better way to accomplish that?

Oh yea, if I would have spare time :)

Yes, my point of view is partly changed by my partly DBA background. This is because the most important thing in every application is the database, of course if the application uses the database. And this is the fact, not the DBA point of view. Data is usually carefully maintained, while it is used by many applications in many different ways. Data is migrated from one database to another, while applications are sometimes thrown away.

Migrations are really nice and can help programmer to write some code changing databases without knowing any sql. For me this is not an advantage - this way you just don&#039;t use your database specific features (e.g. you buy an expensive oracle licence just for using the database like sqlite).

And I fully agree with the last paragraph: you can use databases and write programms fast, cheap or good - choose two of those. The rails migrations like look now allow for fast and cheap - that doesn&#039;t mean good programming. Migrations are becoming better and better, some time ago one migration wasn&#039;t run in a transaction - now it uses transactions. Maybe one day rails will be the best framework with the best migrations ever created. In my opinion now it is not, althought it is quite useful tool.</description>
		<content:encoded><![CDATA[<p>@jon<br />
Sorry for that long time when your comment was waiting to be published, but I was on holidays, just without any network connection <img src='http://simononsoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I agree that migrations are helpful, especially in the beginning of a project. When you have so less data that no one notices dropping a database and recreating the database from a dump.</p>
<p>Doing things manually means that normal rake db:something doesn&#8217;t work. Last time I made my own sql in a rails migration, I noticed that later rake db:schema:dump doesn&#8217;t load that changes to a file. So once using your own sql, you have to remember that and later make dumps without rake db:schema:dump &#038;&#038; load. Maybe you know some better way to accomplish that?</p>
<p>Oh yea, if I would have spare time <img src='http://simononsoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yes, my point of view is partly changed by my partly DBA background. This is because the most important thing in every application is the database, of course if the application uses the database. And this is the fact, not the DBA point of view. Data is usually carefully maintained, while it is used by many applications in many different ways. Data is migrated from one database to another, while applications are sometimes thrown away.</p>
<p>Migrations are really nice and can help programmer to write some code changing databases without knowing any sql. For me this is not an advantage &#8211; this way you just don&#8217;t use your database specific features (e.g. you buy an expensive oracle licence just for using the database like sqlite).</p>
<p>And I fully agree with the last paragraph: you can use databases and write programms fast, cheap or good &#8211; choose two of those. The rails migrations like look now allow for fast and cheap &#8211; that doesn&#8217;t mean good programming. Migrations are becoming better and better, some time ago one migration wasn&#8217;t run in a transaction &#8211; now it uses transactions. Maybe one day rails will be the best framework with the best migrations ever created. In my opinion now it is not, althought it is quite useful tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-924</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Tue, 13 Jul 2010 02:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-924</guid>
		<description>i disagree with this post..

i work with a team of developers on a RoR project.. we have over 350 migrations and it has saved us so much time it is crazy.. 

i agree it is not perfect but for the (rare-ish) times that they don&#039;t cover what you need, you can do things manually... 

I recently started a Catalyst project, and migrations is one of the main things i miss about RoR.. 

sure you can write your own thats gonna be just perfect for your needs, but why bother when this does 95% of stuff and it is already there and works fine...

if you got spare time, you could maybe mod the rails migrations to accept plain SQL then you&#039;ve built what you suggest is a better solution and already have all the other bits in place..

i note your other comments are from what sound like dba&#039;s... i lol at that.. the point is migrations are *really* good, the people commenting sound like they haven&#039;t tried doing dev with and without them...  

(sure if you are a CMMI 5 shop and you have a dba team/test team/UAT team/dev team and architects, then you probably don&#039;t need migrations but if you&#039;re trying to get things done fast on the web with a small team, they&#039;re perfect)</description>
		<content:encoded><![CDATA[<p>i disagree with this post..</p>
<p>i work with a team of developers on a RoR project.. we have over 350 migrations and it has saved us so much time it is crazy.. </p>
<p>i agree it is not perfect but for the (rare-ish) times that they don&#8217;t cover what you need, you can do things manually&#8230; </p>
<p>I recently started a Catalyst project, and migrations is one of the main things i miss about RoR.. </p>
<p>sure you can write your own thats gonna be just perfect for your needs, but why bother when this does 95% of stuff and it is already there and works fine&#8230;</p>
<p>if you got spare time, you could maybe mod the rails migrations to accept plain SQL then you&#8217;ve built what you suggest is a better solution and already have all the other bits in place..</p>
<p>i note your other comments are from what sound like dba&#8217;s&#8230; i lol at that.. the point is migrations are *really* good, the people commenting sound like they haven&#8217;t tried doing dev with and without them&#8230;  </p>
<p>(sure if you are a CMMI 5 shop and you have a dba team/test team/UAT team/dev team and architects, then you probably don&#8217;t need migrations but if you&#8217;re trying to get things done fast on the web with a small team, they&#8217;re perfect)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reggie Hero</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-827</link>
		<dc:creator>Reggie Hero</dc:creator>
		<pubDate>Thu, 06 May 2010 01:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-827</guid>
		<description>Yea, leave real database work to the professionals who will take the responsibility and integrity and leave the rails script kiddies out of the picture. 

&quot;you don’t need to know SQL&quot;

Nice one.</description>
		<content:encoded><![CDATA[<p>Yea, leave real database work to the professionals who will take the responsibility and integrity and leave the rails script kiddies out of the picture. </p>
<p>&#8220;you don’t need to know SQL&#8221;</p>
<p>Nice one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MarkSpizer</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-821</link>
		<dc:creator>MarkSpizer</dc:creator>
		<pubDate>Mon, 03 May 2010 06:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-821</guid>
		<description>great post as usual!</description>
		<content:encoded><![CDATA[<p>great post as usual!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark C</title>
		<link>http://simononsoftware.com/why-ruby-on-rails-migrations-dont-work/comment-page-1/#comment-753</link>
		<dc:creator>Mark C</dc:creator>
		<pubDate>Wed, 14 Apr 2010 15:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.simononsoftware.com/?p=580#comment-753</guid>
		<description>Plain and simple, most rails people are completely clueless when it comes to the database.  Script kiddies.  Most of them shouldn&#039;t be allowed within a mile data worth more than a nickel.</description>
		<content:encoded><![CDATA[<p>Plain and simple, most rails people are completely clueless when it comes to the database.  Script kiddies.  Most of them shouldn&#8217;t be allowed within a mile data worth more than a nickel.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
