Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

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?

Rails find_by_sql - Use "?" literally rather than as bind variable?

How can I simulate `OR` conditions for `has_many` association in Rails 5?

How to prevent nested create failing with scoped has_many in ActiveRecord?

Changing table name at query run time in a Rails application

Rails Postgres query, selecting only items that appear in all search params with associations

Rubocop Uniqueness validation should be with a unique index, in values that start from some specific values

How to get this postgres group by date count include days with 0

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