Friday, October 24, 2008

Using custom column type in Rails migrations

It seems if the type you gave to a column definition in a migration is not listed in native_database_types, Rails will just use what you gave it.

Therefore this will work:
#...
t.column :record_status, 'char(1)', :default => 'E'
#...
view raw gistfile1.rbx hosted with ❤ by GitHub

No comments: