Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Better design pattern for MongoDB document-object-mapper

counter_cache with conditions

How do you stub ActiveRecord::Base methods without making assumptions about how it's used?

Concatenating ActiveRecord::Relations queried through polymorphic association

Rails 3 eager loading of deep nested association

ActiveRecord: Alternative to find_in_batches?

ActiveRecord seems to be validating unchanged child records unnecessarily

How to preview a delete_all or destroy_all query in Rails

connection.select_value only returns strings in postgres with pg gem

ActiveRecord left outer join with and clause

How to set preload scope for Rails Associations::Preloader?

Rails 4.1 - Write to MySQL database without typecasting

How to Get Aggregate Data by Time Slice (sum, avg, min, max, etc.) in Rails 3

Can I execute a raw sql query, leverage prepared statements, and not use ActiveRecord::Relation::QueryAttribute?

How to populate fields in a has_many through join table

multiple database connections with has_many through

Rails 3 How can I allow nested attributes to be passed without the _attributes designation

Rails 4.1 enum raises error instead set object as invalid

Rspec: How to test ActiveRecord::Base.connection.execute

DatingApp programming: ActiveRecord association for finding Users where there are no Approvals or one 1 way approvals