#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
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
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.
`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
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
💼 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…
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
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
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.
Since Rails 7.2, you can now pass a hash to `ActiveRecord::Base#pluck`! 🤯 #rubyonrails #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
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
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
#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
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…
Something went wrong.
Something went wrong.
United States Trends
- 1. Colts 36.4K posts
- 2. Chiefs 73.2K posts
- 3. Giants 81.2K posts
- 4. Gibbs 15.8K posts
- 5. Cowboys 26.4K posts
- 6. Jameis 40K posts
- 7. Lions 58.6K posts
- 8. Turpin 2,134 posts
- 9. Jerry Jeudy 2,141 posts
- 10. Steelers 51.3K posts
- 11. Bears 67.6K posts
- 12. JJ McCarthy 7,509 posts
- 13. Shedeur 37K posts
- 14. Mahomes 18.4K posts
- 15. Vikings 30.3K posts
- 16. Ceedee 3,060 posts
- 17. Shane Bowen 2,586 posts
- 18. Tomlin 7,476 posts
- 19. #FlyEaglesFly 8,049 posts
- 20. #OnePride 5,156 posts