#activerecord search results

This is an excellent articulation of Active Record systems versus custom architecture hexagonal systems. Neither is "correct" and it's all about your business demands. #activerecord #hexagonal #ddd

dr4goonis's tweet image. This is an excellent articulation of Active Record systems versus custom architecture hexagonal systems. 

Neither is "correct" and it's all about your business demands. 

#activerecord #hexagonal #ddd

Rails Tip of The Day 💡 Always prefer ActiveRecord::QueryMethods#none over an empty array [] none returns a chainable relation with zero records. #rubyonrails #activerecord #RailsTipOfTheDay

deepakmahakale's tweet image. Rails Tip of The Day 💡

Always prefer ActiveRecord::QueryMethods#none over an empty array [] 

none returns a chainable relation with zero records. 

#rubyonrails
#activerecord
#RailsTipOfTheDay

Just realised you can actually have an aggregate STI class. Simply override self.sti_name on the subclass and return the classnames you are interested in. 💯💯💯 @rails #ActiveRecord

jlkwarteng's tweet image. Just realised you can actually have an aggregate STI class. Simply override self.sti_name on the subclass and return the classnames you are interested in. 💯💯💯 @rails #ActiveRecord

In Rails 8, adding a `!` to a type automatically makes the column non-nullable. These small additions are what make Rails great! 💚 #rubyonrails #activerecord

RubyCademy's tweet image. In Rails 8, adding a `!` to a type automatically makes the column non-nullable.

These small additions are what make Rails great! 💚

#rubyonrails #activerecord

To allow eager loading scoped associations that require a parameter in my #Ruby on #Rails #ActiveRecord models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.

dhoelzgen's tweet image. To allow eager loading scoped associations that require a parameter in my #Ruby on #Rails #ActiveRecord models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.

`up_only` is definitely one of my favorite methods in ActiveRecord. Period. Use it to specify an operation that runs only when migrating up! #rubyonrails #activerecord

RubyCademy's tweet image. `up_only` is definitely one of my favorite methods in ActiveRecord. Period.

Use it to specify an operation that runs only when migrating up! 

#rubyonrails #activerecord

Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! 🤯 #rubyonrails #activerecord

RubyCademy's tweet image. Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! 🤯

#rubyonrails #activerecord

ActiveRecord is pretty bad-ass 😍 #rails #activerecord #nosql

mentalizer's tweet image. ActiveRecord is pretty bad-ass 😍 #rails #activerecord #nosql

Databases crash, connections drop, queries timeout…but your Rails app doesn’t have to break when they do. Join Hartley McGuire from the Rails Issues team for a technical deep dive at #RailsWorld where he’ll share how #ActiveRecord handles these inevitable hiccups and how you can…

rails's tweet image. Databases crash, connections drop, queries timeout…but your Rails app doesn’t have to break when they do. Join Hartley McGuire from the Rails Issues team for a technical deep dive at #RailsWorld where he’ll share how #ActiveRecord handles these inevitable hiccups and how you can…

Did you know you can add database-level validation to prevent bad data from ever entering your system? 🤩 Just call `add_check_constraint` in your migration, and let your database handle the validation! 💚 #rubyonrails #activerecord #sql

RubyCademy's tweet image. Did you know you can add database-level validation to prevent bad data from ever entering your system? 🤩

Just call `add_check_constraint` in your migration, and let your database handle the validation! 💚

#rubyonrails #activerecord #sql

💼 Sr. Database Performance Engineer - Remote at PayNearMe 📍 Santa Clara, CA 🛠️ #mysql #rubyonrails #activerecord #tidb #redis #elasticache #opensearch #datadog 🔗 applyfirst.app/jobs/21fc0521-…


当你开始写: user.posts.published.recent.page(params[:page]) 而不是写长长的 SQL 时,你就真正上手了 ActiveRecord 的“链式思维”。 #ActiveRecord #Ruby


Vou tentar criar o hábito de, deparando com algumas situações nos projetos que vou lidando, gravar vídeos de dicas. E olha que tem MUITA dica para vir ainda! Aqui tem um sobre recursos de caching ali no ActiveRecord/Rails. Espero que gostem. #ruby #rails #activerecord #caching

taq's tweet image. Vou tentar criar o hábito de,  deparando com algumas situações nos projetos que vou lidando, gravar vídeos de dicas. E olha que tem MUITA dica para vir ainda!

Aqui tem um sobre recursos de caching ali no ActiveRecord/Rails. Espero que gostem.

#ruby #rails #activerecord #caching…

Why doesn’t rel.merge(Model.order(starts_at: :desc)) check if the table for Model has been aliased and just make it work rather than spitting out “invalid reference to FROM-clause entry for table…”? #rubyonrails #activerecord


Take advantage of `ActiveRecord::SpawnMethod#merge` to intersect ActiveRecord relations and easily combine complex conditions in your Rails queries! 💚 #rubyonrails #activerecord

RubyCademy's tweet image. Take advantage of `ActiveRecord::SpawnMethod#merge` to intersect ActiveRecord relations and easily combine complex conditions in your Rails queries! 💚

#rubyonrails #activerecord

Rails Tip of The Day 💡 Always prefer ActiveRecord::QueryMethods#none over an empty array [] none returns a chainable relation with zero records. #rubyonrails #activerecord #RailsTipOfTheDay

deepakmahakale's tweet image. Rails Tip of The Day 💡

Always prefer ActiveRecord::QueryMethods#none over an empty array [] 

none returns a chainable relation with zero records. 

#rubyonrails
#activerecord
#RailsTipOfTheDay

This is an excellent articulation of Active Record systems versus custom architecture hexagonal systems. Neither is "correct" and it's all about your business demands. #activerecord #hexagonal #ddd

dr4goonis's tweet image. This is an excellent articulation of Active Record systems versus custom architecture hexagonal systems. 

Neither is "correct" and it's all about your business demands. 

#activerecord #hexagonal #ddd

The #ActiveRecord guide has just been edited by the team, and is now open for community review. If you have time and want to help, please submit your feedback here: github.com/rails/rails/pu…

rails's tweet image. The #ActiveRecord guide has just been edited by the team, and is now open for community review. If you have time and want to help, please submit your feedback here: github.com/rails/rails/pu…

To allow eager loading scoped associations that require a parameter in my #Ruby on #Rails #ActiveRecord models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.

dhoelzgen's tweet image. To allow eager loading scoped associations that require a parameter in my #Ruby on #Rails #ActiveRecord models, I use a global store to provide the info I need. It's a bit clunky, but Preloaders would not allow chaining.

Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! 🤯 #rubyonrails #activerecord

RubyCademy's tweet image. Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! 🤯

#rubyonrails #activerecord

ActiveRecord is pretty bad-ass 😍 #rails #activerecord #nosql

mentalizer's tweet image. ActiveRecord is pretty bad-ass 😍 #rails #activerecord #nosql

In Rails 8, adding a `!` to a type automatically makes the column non-nullable. These small additions are what make Rails great! 💚 #rubyonrails #activerecord

RubyCademy's tweet image. In Rails 8, adding a `!` to a type automatically makes the column non-nullable.

These small additions are what make Rails great! 💚

#rubyonrails #activerecord

Just realised you can actually have an aggregate STI class. Simply override self.sti_name on the subclass and return the classnames you are interested in. 💯💯💯 @rails #ActiveRecord

jlkwarteng's tweet image. Just realised you can actually have an aggregate STI class. Simply override self.sti_name on the subclass and return the classnames you are interested in. 💯💯💯 @rails #ActiveRecord

`up_only` is definitely one of my favorite methods in ActiveRecord. Period. Use it to specify an operation that runs only when migrating up! #rubyonrails #activerecord

RubyCademy's tweet image. `up_only` is definitely one of my favorite methods in ActiveRecord. Period.

Use it to specify an operation that runs only when migrating up! 

#rubyonrails #activerecord

But first, let's see how it is done with ActiveRecord. Look at this code: we first list all items in an ActiveRecord class, than iterate through it using map and get an specific attribute. Note that this queries and loads the entire list of objects. #ActiveRecord #Rails 2/7

HelloMaxDev's tweet image. But first, let's see how it is done with ActiveRecord.

Look at this code: we first list all items in an ActiveRecord class, than iterate through it using map and get an specific attribute.

Note that this queries and loads the entire list of objects.

#ActiveRecord #Rails 

2/7

ActiveRecord virtual columns are wild! Set one value, get another for free. 🤯 #rubyonrails #activerecord

RubyCademy's tweet image. ActiveRecord virtual columns are wild! Set one value, get another for free. 🤯

#rubyonrails #activerecord

#RailsTip: Rails 7.1 expanded the #ActiveRecord API with new methods that enable asynchronous execution of aggregate methods, as well as any methods returning a single record or non-Relation result, including 'find_by_sql'. More in the API docs: api.rubyonrails.org/classes/Active…

rails's tweet image. #RailsTip: Rails 7.1 expanded the #ActiveRecord API with new methods that enable asynchronous execution of aggregate methods, as well as any methods returning a single record or non-Relation result, including 'find_by_sql'. More in the API docs: api.rubyonrails.org/classes/Active…

Did you know you can run the `db:system:change` task to change the database.yml file and your database gem to the target database? 🤩 #rubyonrails #activerecord

RubyCademy's tweet image. Did you know you can run the `db:system:change` task to change the database.yml file and your database gem to the target database? 🤩

#rubyonrails #activerecord

Databases crash, connections drop, queries timeout…but your Rails app doesn’t have to break when they do. Join Hartley McGuire from the Rails Issues team for a technical deep dive at #RailsWorld where he’ll share how #ActiveRecord handles these inevitable hiccups and how you can…

rails's tweet image. Databases crash, connections drop, queries timeout…but your Rails app doesn’t have to break when they do. Join Hartley McGuire from the Rails Issues team for a technical deep dive at #RailsWorld where he’ll share how #ActiveRecord handles these inevitable hiccups and how you can…

Loading...

Something went wrong.


Something went wrong.


United States Trends