Monthly Archives: August 2010

Changing Column Order via ActiveRecord Migration

Is it possible to change the order of the columns in your MySQL (or other database) table using a migration? Lets see. If you check the ActiveRecord::Migration documentation you’ll see there is a method called ‘change_column’ which accepts various options. change_column(table_name, column_name, type, options): Changes the column to a different type using the same parameters…

Myst and Riven – for Steam!!

I just went to the Cyan Worlds website, to read about their release of The Manhole for the iPhone, iPod Touch, and iPad. I never played the game, but for $2 I’ll play it now. Amazingly enough it has been YEARS since I played the sequel to Myst, Riven. I just saw that they are…

Rails Performance Statistics

Again, as I search for things, I stumble onto new tools. I just found out about a tool for monitoring the performance of Java and Ruby applications called New Relic. They provide a free service level for Startups and Students even.

RailRoad Gem

I just discovered that there is a Ruby gem which generates diagrams based on Rails models (ActiveRecord). I ran across this website a while back, but didn’t quite connect the dots. I was just reading an article on placing models into their own namespace, and I realized that the diagram it uses as an example…

Annotate Models

There is a rails plugin which adds schema information for the models in comments at the top of your model definition files. It’s really useful. Check out the instructions on installing and using this plugin at: http://pragdave.pragprog.com/pragdave/2006/02/annotate_models.html