#activerecord — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #activerecord, aggregated by home.social.
-
New TIL post on ActiveRecord Custom Types
In developing bracket-lab, I needed a 1-indexed bit field of 63 bits, stored as an unsigned 63-bit value in an int64 column.
ActiveRecord’s custom types made this clean.
-
It happens you need some field in the database to not contain an empty string, but to be NULL. For example, a unique index has been added to this field, meaning there can only be one record with an empty string. However, if the field has a NULL value, it is unique and there can be multiple such records.
#Ruby #Rails #ActiveRecord #Normalization #NULL #Empty #UNIQUE
-
At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:
• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter supportThis is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.Full technical breakdown 👇
https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/
-
At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:
• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter supportThis is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.Full technical breakdown 👇
https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/
-
At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:
• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter supportThis is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.Full technical breakdown 👇
https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/
-
At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:
• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter supportThis is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.Full technical breakdown 👇
https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/
-
At Kaigi on Rails 2025, Rails Committer Yasuo Honda walked through:
• Protocol 3.2 & extended cancel keys
• Why pg ≥ 1.6 matters
• UNLOGGED partition removal
• pg_stat_statements improvements
• Virtual generated columns (now default in PG18)
• Rails 8.1 adapter supportThis is a great example of ecosystem coordination:
PostgreSQL core → pg gem → Rails adapter → production apps.Full technical breakdown 👇
https://rubystacknews.com/2026/02/11/rails-meets-postgresql-18/
-
e.g. Yesterday I Learned about #ActiveRecord's overloading of the #Ruby "shovel" ("<<") operator, and a couple of weeks ago I started a foray into #Rails YAML serialisation, which seems to have changed quite a bit between versions, leading to inconsistently-formatted data in the database, and the exciting prospect of writing a data migration that runs raw SQL queries 😵
-
e.g. Yesterday I Learned about #ActiveRecord's overloading of the #Ruby "shovel" ("<<") operator, and a couple of weeks ago I started a foray into #Rails YAML serialisation, which seems to have changed quite a bit between versions, leading to inconsistently-formatted data in the database, and the exciting prospect of writing a data migration that runs raw SQL queries 😵
-
e.g. Yesterday I Learned about #ActiveRecord's overloading of the #Ruby "shovel" ("<<") operator, and a couple of weeks ago I started a foray into #Rails YAML serialisation, which seems to have changed quite a bit between versions, leading to inconsistently-formatted data in the database, and the exciting prospect of writing a data migration that runs raw SQL queries 😵
-
ActiveRecord: опасная магия
В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство» нередко начинает оборачиваться скрытыми проблемами.
https://habr.com/ru/articles/970042/
#ruby #rubyonrails #sql #activerecord #ошибки_и_грабли #n+1 #orm
-
ActiveRecord: опасная магия
В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство» нередко начинает оборачиваться скрытыми проблемами.
https://habr.com/ru/articles/970042/
#ruby #rubyonrails #sql #activerecord #ошибки_и_грабли #n+1 #orm
-
ActiveRecord: опасная магия
В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство» нередко начинает оборачиваться скрытыми проблемами.
https://habr.com/ru/articles/970042/
#ruby #rubyonrails #sql #activerecord #ошибки_и_грабли #n+1 #orm
-
ActiveRecord: опасная магия
В Ruby‑разработке ActiveRecord давно стал стандартом: он интуитивно понятен, встроен в Rails и позволяет быстро проводить CRUD‑операции. По мере роста проекта его «удобство» нередко начинает оборачиваться скрытыми проблемами.
https://habr.com/ru/articles/970042/
#ruby #rubyonrails #sql #activerecord #ошибки_и_грабли #n+1 #orm
-
Einmal ins Rabbit Hole von RubyonRails und ActiveRecord abtauchen und zurück?
Viel Spaß!
... und keine Klagen, wenn ihr länger drin geblieben seid als geplant 😆
https://www.youtube.com/watch?v=B4gEyuEQaBM
#rubyonrails #activerecord #deepdive -
Einmal ins Rabbit Hole von RubyonRails und ActiveRecord abtauchen und zurück?
Viel Spaß!
... und keine Klagen, wenn ihr länger drin geblieben seid als geplant 😆
https://www.youtube.com/watch?v=B4gEyuEQaBM
#rubyonrails #activerecord #deepdive -
Einmal ins Rabbit Hole von RubyonRails und ActiveRecord abtauchen und zurück?
Viel Spaß!
... und keine Klagen, wenn ihr länger drin geblieben seid als geplant 😆
https://www.youtube.com/watch?v=B4gEyuEQaBM
#rubyonrails #activerecord #deepdive -
Einmal ins Rabbit Hole von RubyonRails und ActiveRecord abtauchen und zurück?
Viel Spaß!
... und keine Klagen, wenn ihr länger drin geblieben seid als geplant 😆
https://www.youtube.com/watch?v=B4gEyuEQaBM
#rubyonrails #activerecord #deepdive -
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: https://discord.gg/KfBeRSjK?event=1384536117914894458 -
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: https://discord.gg/KfBeRSjK?event=1384536117914894458 -
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: https://discord.gg/KfBeRSjK?event=1384536117914894458 -
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: https://discord.gg/KfBeRSjK?event=1384536117914894458 -
⏰ Just one hour away, our June online meetup is starting ⏰
Join us today at 12pm Eastern for An ActiveRecord Rewrite: the Story Behind the Attributes API talk from Tess Griffin! Find us and the meetup link on discord: https://discord.gg/KfBeRSjK?event=1384536117914894458 -
JRuby's activerecord-jdbc-adapter doesn't yet support ActiveRecord 8. How should a gem which depends on ActiveRecord try to best support both CRuby and JRuby?
https://rubygems.org/gems/activerecord-jdbc-adapter/versions/71.0-java -
JRuby's activerecord-jdbc-adapter doesn't yet support ActiveRecord 8. How should a gem which depends on ActiveRecord try to best support both CRuby and JRuby?
https://rubygems.org/gems/activerecord-jdbc-adapter/versions/71.0-java -
JRuby's activerecord-jdbc-adapter doesn't yet support ActiveRecord 8. How should a gem which depends on ActiveRecord try to best support both CRuby and JRuby?
https://rubygems.org/gems/activerecord-jdbc-adapter/versions/71.0-java -
JRuby's activerecord-jdbc-adapter doesn't yet support ActiveRecord 8. How should a gem which depends on ActiveRecord try to best support both CRuby and JRuby?
https://rubygems.org/gems/activerecord-jdbc-adapter/versions/71.0-java -
JRuby's activerecord-jdbc-adapter doesn't yet support ActiveRecord 8. How should a gem which depends on ActiveRecord try to best support both CRuby and JRuby?
https://rubygems.org/gems/activerecord-jdbc-adapter/versions/71.0-java -
Shardines: SQLite3 Database-per-Tenant with ActiveRecord
https://blog.julik.nl/2025/04/a-can-of-shardines
#HackerNews #Shardines #SQLite3 #ActiveRecord #DatabasePerTenant #HackerNews
-
Shardines: SQLite3 Database-per-Tenant with ActiveRecord
https://blog.julik.nl/2025/04/a-can-of-shardines
#HackerNews #Shardines #SQLite3 #ActiveRecord #DatabasePerTenant #HackerNews
-
Shardines: SQLite3 Database-per-Tenant with ActiveRecord
https://blog.julik.nl/2025/04/a-can-of-shardines
#HackerNews #Shardines #SQLite3 #ActiveRecord #DatabasePerTenant #HackerNews
-
Shardines: SQLite3 Database-per-Tenant with ActiveRecord
https://blog.julik.nl/2025/04/a-can-of-shardines
#HackerNews #Shardines #SQLite3 #ActiveRecord #DatabasePerTenant #HackerNews
-
Wide Models and Active Record custom validation contexts, by @bensheldon
https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts
> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:
> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.
-
Wide Models and Active Record custom validation contexts, by @bensheldon
https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts
> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:
> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.
-
Wide Models and Active Record custom validation contexts, by @bensheldon
https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts
> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:
> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.
-
Wide Models and Active Record custom validation contexts, by @bensheldon
https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts
> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:
> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.
-
Wide Models and Active Record custom validation contexts, by @bensheldon
https://island94.org/2025/04/wide-models-and-active-record-custom-validation-contexts
> This post is a brief description of a pattern I use a lot using when building features in Ruby on Rails apps and that I think needed a name:
> Wide Models have many attributes (columns in the database) that are updated in multiple places in the application, but not always all at once i.e. different forms will update different subsets of attributes on the same model.
-
How fast can an ActiveRecord SQL query run?, by Fritz Meissner
https://thoughtbot.com/blog/how-fast-can-an-activerecord-sql-query-run> Your database monitoring (perhaps Amazon RDS performance insights, Skylight, or the #Postgres pg_stat_activity view) is telling you that one particular query in your Rails app is causing heavy load. Unfortunately, it already seems pretty fast. What are the odds that you can get it to run any faster?
-
How fast can an ActiveRecord SQL query run?, by Fritz Meissner
https://thoughtbot.com/blog/how-fast-can-an-activerecord-sql-query-run> Your database monitoring (perhaps Amazon RDS performance insights, Skylight, or the #Postgres pg_stat_activity view) is telling you that one particular query in your Rails app is causing heavy load. Unfortunately, it already seems pretty fast. What are the odds that you can get it to run any faster?
-
How fast can an ActiveRecord SQL query run?, by Fritz Meissner
https://thoughtbot.com/blog/how-fast-can-an-activerecord-sql-query-run> Your database monitoring (perhaps Amazon RDS performance insights, Skylight, or the #Postgres pg_stat_activity view) is telling you that one particular query in your Rails app is causing heavy load. Unfortunately, it already seems pretty fast. What are the odds that you can get it to run any faster?
-
How fast can an ActiveRecord SQL query run?, by Fritz Meissner
https://thoughtbot.com/blog/how-fast-can-an-activerecord-sql-query-run> Your database monitoring (perhaps Amazon RDS performance insights, Skylight, or the #Postgres pg_stat_activity view) is telling you that one particular query in your Rails app is causing heavy load. Unfortunately, it already seems pretty fast. What are the odds that you can get it to run any faster?
-
How fast can an ActiveRecord SQL query run?, by Fritz Meissner
https://thoughtbot.com/blog/how-fast-can-an-activerecord-sql-query-run> Your database monitoring (perhaps Amazon RDS performance insights, Skylight, or the #Postgres pg_stat_activity view) is telling you that one particular query in your Rails app is causing heavy load. Unfortunately, it already seems pretty fast. What are the odds that you can get it to run any faster?
-
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue #rubyonrails #activerecord #poland #37signals #backgroundprocessing #backgroundprocesses #sidekiq
-
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue #rubyonrails #activerecord #poland #37signals #backgroundprocessing #backgroundprocesses #sidekiq
-
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue #rubyonrails #activerecord #poland #37signals #backgroundprocessing #backgroundprocesses #sidekiq
-
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue #rubyonrails #activerecord #poland #37signals #backgroundprocessing #backgroundprocesses #sidekiq
-
It's always great to see @rosa and she talked about her #SolidQueue implementation at #rubycommunityconference in #krakow.
She also gave a shout-out to @bensheldon's #goodjob and mentioned how @getajobmike's @sidekiq is blazingly fast.
#ruby #rails #queue #rubyonrails #activerecord #poland #37signals #backgroundprocessing #backgroundprocesses #sidekiq
-
I know #SQLite3 supports #SQL comments in newer versions with the right flags, but `rails g` for #ActiveRecord ďoesn’t seem to support them except in #PostgreSQL or #MySQL / #MariaDB. Is there a workaround?
-
I know #SQLite3 supports #SQL comments in newer versions with the right flags, but `rails g` for #ActiveRecord ďoesn’t seem to support them except in #PostgreSQL or #MySQL / #MariaDB. Is there a workaround?
-
I know #SQLite3 supports #SQL comments in newer versions with the right flags, but `rails g` for #ActiveRecord ďoesn’t seem to support them except in #PostgreSQL or #MySQL / #MariaDB. Is there a workaround?