Fixes for ActiveRecord Migrations
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
GPL3_LICENSE
MIT-LICENSE
README
Rakefile
init.rb

README

SMTMigrationFixes
=================

Having problems with your migrations because of outdated column information?
Are you seeing errors like the following?

Mysql::Error: Unknown column 'events.is_temporary' in 'field list': SELECT `events`.`id` ...

By default, ActiveRecord caches the column information. Installing this plugin
will invalidate that cache for each migration run.

Installation
============

Without submodules:

  git clone git://github.com/smtlaissezfaire/smt_migration_fixes.git vendor/plugins/smt_migration_fixes
  cd vendor/plugins/smt_migration_fixes
  rm -rf .git
  cd -
  git add vendor/plugins/smt_migration_fixes
  git commit -m "* Added smt_migration_fixes on submodules"

Under submodules:

  git submodule add git://github.com/smtlaissezfaire/smt_migration_fixes.git vendor/plugins/smt_migration_fixes
  git commit -a -m "* Added smt_migration_fixes on submodules"  # commit...
  git submodule init
  git submodule update


Thanks
=======

This plugin is based on a patch to ActiveRecord from
http://dev.rubyonrails.org/ticket/9436.

Copyright (c) 2008 Scott Taylor <scott@railsnewbie.com>, released under the MIT & GPL licenses.