views:

181

answers:

1

For single table inheritance, how do you force Rails to use an integer column for the 'type' column instead of string?

A: 

You would have to find the part of ActiveRecord responsible for handling the "type" column and monkey patch it, i.e. override how it worked from within your application.

John Topley