Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Best way to conditionally chain scopes

Rails: Sort nils to the end of a scope?

Return nil object if after_initialize callback returns false

Rails ActiveRecord Includes with Inner Join

rails has_many :through has_many :through

Eager Load Depending on Type of Association in Ruby on Rails

Rails: Model instance method or helper method?

Rails Activerecord/Postgres time format

Which one is faster between map, collect, select and pluck?

Retrieve the nextval from a sequence using activerecord in Ruby on Rails 3.2.14 / Ruby 2.0.0 / PostgreSQL 9.2.4

Re-enable Rails 4 auto-EXPLAIN

Rails conditional validation in model

Validates with :if

Rails includes() LEFT OUTER JOIN with custom ON clause

Rails has_many with `through` option "loses" joins?

Scoping with two foreign keys

ActiveRecord pluck to SQL

Eager loading an association of a singular association from an instantiated ActiveRecord object in Rails 5

Add computable column to multi-table select clause with eager_load in Ruby on Rails Activerecord

Search active record for partial strings in a column