Use an ActiveRecord Hash column as backend for dynamic attributes. Dynamic attributes will act like table columns. Just include the HashAttributes module in your ActiveRecord::Base class.