Dont copy code
Posted on February 26, 2007 - Filed Under Other, RubyOnRails
Well it hits me so often… I’m using copy&paste to build similar code. And then it fires me back, when I made some stupid typo. Finding case of such errors is usually very annoying…
I was adding several fields to table in Rails application. I wrote migrations self.up and used this as a skeleton for remove_column in self.down. Of course I have left one coma to much, and struggled over 20 minutes to find what was wrong…
Popularity: 3% [?]
Hits for this post: 2436
Similar Posts
- Migrating rails – what it is about?
- Migrations with advanced data operations
- MySQL, collations and Rails – or server, database, connection – that is not all
- Column names restrictions
- Migrations headache
Comments
Leave a Reply


