Remove usage of the heavy schema_plus gem (it included the whole of rails!) and use dependant relationships instead of foreign keys