Tag: postgres

  • Getting a count of the rows in all of your ActiveRecord models

    Warning: Going through ActiveRecord is likely not something you want to do in production unless you have a replica database that your script or your model can point at. See the second part for MySQL and PostgreSQL examples in SQL. How do you enumerate your models? For apps created under Rails 5 app or later,…