I am using the class_table_inheritance Sequel plugin for my project and I have the following models:
class Account < Sequel::Model
plugin :class_table_inheritance
end
class TwitterAccount < Account; end
class FacebookAccount < Account; end
class GoogleAccount < Account; end
I would prefer to set the column "account_type" in my account, which is an enumeration with the possible values ββof "Twitter", "Facebook" and "Google" to determine which type of account.
I don't like the idea of ββa column in my table bound to the name of my model classes. It directly connects me to the ORM that I use, and prevents me from changing model names.
Is there a way to provide the class_table_inheritance plugin with a key character map for class name characters in the same way that it is possible to provide a class name character tabular map for table name characters?
source
share