dwyl / learn-phoenix

:fire: Phoenix is the web framework without compromise on speed, reliability or maintainability! Don't settle for less. :rocket:
649 stars 45 forks source link

Creating multi dbs in phoenix #85

Open katbow opened 7 years ago

katbow commented 7 years ago

There is sometimes a need to have a second database/Repo in phoenix. You may want to separate certain data sets beyond just separate tables, or you may want some tables to be read only. Creating a second "ReadOnlyRepo" is a great way to have this separation (or any repo name of your choice 🙂 ).