Any suggestions on when and when not to use STI vs. Concerns?
- Concerns. Use multiple tables/models, with same columns names for common attributes, and put common functionality into shared concerns.
STI. Use single table with
typecolumn. Put common functionality in base class (AR class that maps to table name), and put distinct functionality into child classes.
Here’s a couple good articles I found on STI: