Shardines - Rails에서 SQLite로 테넌트별 데이터베이스 관리하기
------------------------------
- Rails에서 *테넌트마다 별도 데이터베이스* 를 사용하는 구조를 구축하는 방법과 그 도전 과정을 설명
- ActiveRecord 는 기본적으로 단일 DB 연결을 전제로 설계되어 있어, 테넌트별 연결 전환이 복잡하고 까다로움
- Rails 6 이상의 *connected_to* 기능을 활용해 * 런타임에 연결을 동적으로 전환*하는 …
------------------------------
https://news.hada.io/topic?id=20587&utm_source=googlechat&utm_medium=bot&utm_campaign=1834
If you have a fediverse account, you can quote this note from your own instance. Search https://sns.lemondouble.com/notes/a75fo65f9j on your instance and quote it. (Note that quoting is not supported in Mastodon.)