Phoenix testing with existing postgres database

I’m using a rails database and have modelled my schemas to work it. How do I test with this database without seeds and migrations

1 Like

Then you just create a model in Phoenix, create the same scheme, as database requires it. Then set up database config for your database and you should be able to use this model to retrieve data from the database.

3 Likes