Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

has_one association not working with includes

Affected rows for ActiveRecord::Base.connection.execute with Postgres

ActiveRecord boolean validation accepting non-boolean values

Rails after_save callback not firing

How do you get a count of a subquery in Active Record?

Finding in array of active record results

Adding parameter to a scope

ActiveRecord query through multiple joins

consolidating multiple column counts into a single query with Rails 4 Activerecord

Compare only the times of two timestamps in postgres

Implementing the composite pattern in Ruby on Rails

ActiveRecord :includes - how to use map with loaded associations?

Rails ActiveRecord handle an id column that is not the primary key

Performance differences between .exists? and .where.present?

Merge arrays in Ruby/Rails

Ruby on Rails: Running custom validation function only when other properties are present

Rails Active Record has nil id after commit