Monday, October 22, 2007

migration_izzle

Managing migration version numbers in Rails among multiple developers using the same database is a pain in the ass. You know the drill, you svn up, create a migration, try to run db:migrate but low and behold, the db version is already 10 versions above your migration's.

This plugin offers a simple solution: create and manage a "history" table that records which migrations have and have not been run and modify rake db:migrate to behave accordingly.

For documentation, installation and usage instructions, please see the migration_izzle github page (scroll down).

Sunday, October 21, 2007

Better AppConfig Plugin for Rails

There are plenty of "AppConfig" plugins for Rails already out there, so why did I make one? Three reasons:

  • Break the config files out into different files, one for each environment plus a shared common one.
  • Allows for nested sections and preserves object member notation for them.
  • Allows for lists (arrays).

Installation


git clone git://github.com/cjbottaro/app_config.git vendor/plugins/app_config

Usage


See the README on github (scroll down on the page).

Tests


All the unit tests should pass.

cd RAILS_ROOT/vendor/plugins/app_config
rake test