active_record_distinct_on
zero_downtime_migrations
Our great sponsors
active_record_distinct_on | zero_downtime_migrations | |
---|---|---|
1 | 1 | |
32 | 562 | |
- | - | |
4.6 | 0.0 | |
3 months ago | 8 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
active_record_distinct_on
-
How do I query for the most recently created records across multiple models !
If you're using Postgres, then DISTINCT ON may also be a good option via the active_record_distinct_on gem.
zero_downtime_migrations
-
Rails: Postgres Partial Indexing
I've historically used https://github.com/LendingHome/zero_downtime_migrations which is based on strong_migrations but at the end of the day anything is better than nothing.
What are some alternatives?
counter_culture - Turbo-charged counter caches for your Rails app.
ActiveRecord Setops - Union, Intersect, and Difference set operations for ActiveRecord (also, SQL's UnionAll).
PaperTrail - Track changes to your rails models
dynamic-records-meritfront - Dynamic Records Meritfront was built to allow you to make full use of your database's capabilites, while utilizing ruby on rails & Active Record. It contains a better way to write sql queries for rails, and includes other tips and tricks to take advantage of. Perfect for all your dynamic applications, optimizations and weird edge cases!
actual_db_schema - Wipe out inconsistent DB and schema.rb when switching branches. Just install this gem and use the standard rake db:migrate command.
ransack - Object-based searching.
Lol DBA - lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
active_record_doctor - Identify database issues before they hit production.
Ruby on Rails - Ruby on Rails
Scenic - Versioned database views for Rails
SQL Server - SQL Server Adapter For Rails