activerecord_views
activerecord_views copied to clipboard
Automatic PostgreSQL database view creation for ActiveRecord
Adds the option for standard btree indexes to be added to a view. Also moves sql files dir for clarity.
I have materialized_view (postgres) working perfectly in development environment, but loading test envrionment fails in initializer I defined: ``` LeaseRequestsSearch.refresh_view!(concurrent: :auto) if LeaseRequestsSearch.view_populated? ``` The error is: ``` SELECT class_name,...
Is it possible to add indexes to views?
I'm testing out `activerecord_views` as an option for our new rails-based API backed by an existing database containing several views. We want to move db migration to ActiveRecord. I've set...
Hey :) I had a bit of trouble getting a view working in test mode with `use_transactional_fixtures` set to true. I looked at Dart Scores (https://github.com/ennova/dartscores/commit/2a2b02ac8c0b493873ec4a2f310590986aeaa8f4) and tried switching to...
Documentation could include an example that builds from an ActiveRecord scope using `.to_sql`.
We don’t currently track views in development mode which are using a string rather than a file. With #11, cleanup would happen on next app boot but it would be...
Now that we have class names in the metadata table, we could try to load each constant and drop the view if it fails. What should we do if another...