Search code examples
Undefined method update_attributes in Rails...


ruby-on-railsrails-activerecord

Read More
"This connection is in use by Fiber" error after upgrade to rails 7.2 and ruby 3.2.2...


ruby-on-railsrails-activerecordpumamysql2ruby-on-rails-7.2

Read More
Combine two ActiveRecord::Relation objects...


ruby-on-railsrails-activerecordarel

Read More
Validate uniqueness of multiple columns...


ruby-on-railsvalidationactiverecordrails-activerecord

Read More
What do I pass to schema_migration in ActiveRecord::MigrationContext#new...


ruby-on-railsrubyrails-activerecord

Read More
Use Rails' select() to add (not overwrite) selected attributes?...


ruby-on-railsactiverecordrails-activerecord

Read More
How to change default timezone for Active Record in Rails?...


ruby-on-railsrubytimezonerails-activerecord

Read More
Possible to remove method in ActiveRecord?...


ruby-on-railsrails-activerecordruby-on-rails-7

Read More
How can I avoid running ActiveRecord callbacks?...


ruby-on-railsrubyrails-activerecord

Read More
Is it possible to add errors to an ActiveRecord object without associating them with a particular at...


ruby-on-railsactiverecordrails-activerecord

Read More
Upsert_all with uniqueness index constraint...


ruby-on-railspostgresqlrails-activerecordupsertbulkupdate

Read More
What is the difference between pluck and collect in Rails?...


ruby-on-railsrubyrails-activerecord

Read More
List all associations of a model...


ruby-on-railsrails-activerecord

Read More
ActiveRecord OR query...


ruby-on-railsruby-on-rails-3rails-activerecord

Read More
Rails ActiveModel get sum of calculated column...


ruby-on-railsrails-activerecord

Read More
Changing table name at query run time in a Rails application...


ruby-on-railsrubyactiverecordrails-activerecord

Read More
ActiveRecord validation for nil...


ruby-on-railsrubyrails-activerecordactivesupport

Read More
Saving an associated polymorphic object duplicates it...


ruby-on-railsrubyrails-activerecord

Read More
ActiveRecord delete_all method updating instead of deleting...


ruby-on-railsactiverecordrails-activerecordruby-on-rails-4.1

Read More
Ruby on Rails: getting the max value from a DB column...


ruby-on-railsrails-activerecord

Read More
How to set timezone for ActiveRecord queries to fetch the accurate figures?...


ruby-on-railstimezonerails-activerecord

Read More
How to preload associations of STI models in Rails 7?...


ruby-on-railsrails-activerecordruby-on-rails-7

Read More
When is a pessimistic lock released in ActiveRecord?...


lockingrails-activerecordpessimistic

Read More
How do I eager load multiple associations in same query with ActiveRecord?...


ruby-on-railsactiverecordrails-activerecord

Read More
Rails :include vs. :joins...


ruby-on-railsrubydatabasejoinrails-activerecord

Read More
Query on a time range ignoring the date of timestamps...


sqlruby-on-railsrubypostgresqlrails-activerecord

Read More
Do I need to use Class.scope_name when using scope in the same model, or can I just use scope_name?...


ruby-on-railsrails-activerecord

Read More
Rails: How can I set default values in ActiveRecord?...


ruby-on-railsrails-activerecord

Read More
How to write Rails scope for this SQL query...


sqlruby-on-railsrubyscoperails-activerecord

Read More
Using Common Table Expression (CTE) with Rails ActiveRecord...


ruby-on-railsrails-activerecordcommon-table-expression

Read More
BackNext