Relationship attribute is not used by the application code, so we can remove it without replacing it with a TemplateHistory one. This also updates the foreign key constraint to refer to the composite primary key for the TemplateHistory records.
allow inbound sms