← Home

Ruby on Rails plugin: Migration custom column types

Let's stress it again: Rails' migrations rock. Totally.

But when you want to change a database column to some vendor specific type (like varbinary for MySQL) you notice that Rails doesn't hand over control that easily like it does elsewhere in ActiveRecord: you're not allowed to use any custom type by default.

Fortunately this is easy to change from within a plugin. This one does the trick. You can read more about it in the following article: Allow custom column types in your migrations

And you can find the code right over here:

http://svn.artweb-design.de/stuff/rails/migration_custom_column_types/

blog comments powered by Disqus