Steve Lim said about 3 years ago on What's New in Rails 6 :
yes I did. also to shed some more light.. the DB-r (ANALYTICS_URL) should not be used because I don't even have this line in place..it should be using my primary db..(DATABASE_URL)
but my postgres log is showing that this DB-r is being used. 2021-09-28 11:14:06 UTC:ec2-XXXXX.compute-1.amazonaws.com(47640):anal@d1octXXXX:[445]:ERROR: permission denied for relation users <-- this is db with read access (ANALYTICS_URL) which is raising this error...


# config.active_record.database_selector = { delay: 2.seconds } I am not using this line so all the db connections should all go to db-w...



self.abstract_class = true
connects_to database: { writing: :primary, reading: :follower }