In models there is the line storage_names[:default] = 'patient', and so on, the idea is to see second title here, to create a rule that allows DataMapper to deduce table name from model class name, examples:
- I create
class Patient in file patient/patient.rb the deduced table name should be patient (by default is patients)
- I create
class Patient::Identifier in file patient/identifier.rb the deduced table name should be patient_identifier (by default is identifiers)
In models there is the line
storage_names[:default] = 'patient', and so on, the idea is to see second title here, to create a rule that allows DataMapper to deduce table name from model class name, examples:class Patientin filepatient/patient.rbthe deduced table name should bepatient(by default ispatients)class Patient::Identifierin filepatient/identifier.rbthe deduced table name should bepatient_identifier(by default isidentifiers)