Saving an associated polymorphic object duplicates it...
Read MoreActiveRecord delete_all method updating instead of deleting...
Read MoreRuby on Rails: getting the max value from a DB column...
Read MoreUpsert_all with uniqueness index constraint...
Read MoreHow to set timezone for ActiveRecord queries to fetch the accurate figures?...
Read MoreHow to preload associations of STI models in Rails 7?...
Read MoreWhen is a pessimistic lock released in ActiveRecord?...
Read MoreValidate uniqueness of multiple columns...
Read MoreHow do I eager load multiple associations in same query with ActiveRecord?...
Read MoreQuery on a time range ignoring the date of timestamps...
Read MoreDo I need to use Class.scope_name when using scope in the same model, or can I just use scope_name?...
Read MoreRails: How can I set default values in ActiveRecord?...
Read MoreHow to write Rails scope for this SQL query...
Read MoreUsing Common Table Expression (CTE) with Rails ActiveRecord...
Read MoreRails many-to-many association query by AND of associated records...
Read MoreHow to check if a Rails model is defined?...
Read Moreindex: true vs foreign_key: true (Rails)...
Read MoreSubbing a class name for a table name in ActiveRecord query...
Read MoreEnum, default value reseted to nil on save...
Read MoreCreating a PostgreSQL sequence to a field (which is not the ID of the record)...
Read MoreIs there a way to create a has_many association that just filters items from another has_many associ...
Read MoreCompared with non class/module error...
Read Moreeager loading not working with order() clause in rails...
Read MoreRails query working in console but not in the controller...
Read MoreIn Rails, can I order a query by a delegate method?...
Read MoreHow to destroy a bi-directional has_one association from either end?...
Read More