Rails metaprogramming. Generating dynamically ActiveRecord::Base descendants from database introspection.