Can I use ActiveRecord relationships with fields from an Hstore?
Can I tie a model to another through active record belongs_to using a field from an hstore hash? I'll elaborate: I have a User model that gets subclassed via STI on one of its fields to many different other User models based on permissions: class User < ActiveRecord::Base self.inheritance_column = :role #other definitions and validations end Here's one such submodel, the nightclub_boss model, meant for administrative users for my app: class NightclubBoss < User belongs_to :nightclub #the boss record has a nightclub_id has_one :rp_boss #rp_boss should have a nightclub_boss_id has_one :captain