online_migrations
Scenic
Our great sponsors
online_migrations | Scenic | |
---|---|---|
18 | 8 | |
577 | 3,337 | |
- | 0.9% | |
9.0 | 4.1 | |
9 days ago | 7 days 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.
online_migrations
-
Gemfile of dreams: the libraries we use to build Rails apps
I would like to suggest for consideration a more feature-rich alternative to "strong_migrations" - https://github.com/fatkodima/online_migrations (there is a comparison with it in the README).
-
Is there a linter for non-backwards-compatible DB migrations?
There is kinda such a linter, but for ruby/rails projects - https://github.com/fatkodima/online_migrations.
-
Show HN: Zero-downtime PostgreSQL migrations for Ruby on Rails
Thanks for mentioning. I made a comparison with it - https://github.com/fatkodima/online_migrations#cool-but-ther...
-
Zero-downtime PostgreSQL migrations for Ruby on Rails
changing column types (https://github.com/fatkodima/online_migrations/blob/master/lib/online_migrations/change_column_type_helpers.rb)
I recently created a library - https://github.com/fatkodima/online_migrations.
-
Announcing online_migrations - a gem that catches unsafe migrations in development and provides helpers to run them easier in production
I’m publishing a new gem today. The name is online_migrations, it’s at https://github.com/fatkodima/online_migrations. For those familiar with strong_migrations, it is a "strong_migrations on steroids".
strong_migrations provides you with text guidance on how to run migrations safer, but my gem have actual code helpers (which the gem suggests to use) you can use to do what you want. For example, it has migration helpers for renaming tables/columns (https://github.com/fatkodima/online_migrations/blob/4eec4c1a21689b291fabf4d315cf465f1d859745/lib/online_migrations/schema_statements.rb#L123-L320), changing column types (https://github.com/fatkodima/online_migrations/blob/master/lib/online_migrations/change_column_type_helpers.rb), adding columns with defaults (https://github.com/fatkodima/online_migrations/blob/4eec4c1a21689b291fabf4d315cf465f1d859745/lib/online_migrations/schema_statements.rb#L343-L424), and more. And ability to run heavy data migrations in background (https://github.com/fatkodima/online_migrations/blob/master/BACKGROUND_MIGRATIONS.md).
Scenic
-
Database Views & Rails Active Record: defining new Model classes out of views
To model our Deliverable class, we will need a view. We will use the popular scenic gem, which provides some useful generators for creating views with their respective migrations, and utilities to handle views versioning.
-
Materialised views for serious performance gains
+1 for scenic - https://github.com/scenic-views/scenic
For views (materialized and non-materialized) in Rails apps, scenic is your friend.
-
Most performant way to build an analytics dashboard from a relational database backend that only stores numeric values, where the data the end-user sees is "categorized" into numeric brackets (e.g. 60-79 = Med, 80-100 = High, etc)
If the data doesn't need to be close to real-time, and if your DB can handle a bit of load, I'd use a "batch" approach. To do this, I'd create a materialized view in your relational DB that you'd then refresh periodically. The easiest way to do this is with the `scenic` gem. Once you've done this, you can simply create a new model and set the `table_name` to the name of the materialized view, and then treat it as a regular model.
-
Frameworks for SQL Development in Rails?
I use the scenic gem to manage views which uses raw sql files: https://github.com/scenic-views/scenic
-
Rails application boilerplate for fast MVP development
add scenic
What are some alternatives?
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.
PgHero - A performance dashboard for Postgres
SecondBase - Seamless second database integration for Rails.
Polo - Polo travels through your database and creates sample snapshots so you can work with real world data in development.
SchemaPlus - SchemaPlus provides a collection of enhancements and extensions to ActiveRecord
Ruby PG Extras - Ruby PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
Database Cleaner - Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing.
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries
QueryTrack - Find time-consuming database queries for ActiveRecord-based Rails Apps
DatabaseConsistency - The tool to avoid various issues due to inconsistencies and inefficiencies between a database schema and application models.
PgDriveBackup - Simple solution to make encrypted with ccrypt PostgreSQL backups and storing on Google Drive API
flipper - 🐬 Beautiful, performant feature flags for Ruby.