Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

UNION query with codeigniter's active record pattern

How to eager load objects with a custom join in rails?

When to use "validates_associated" v "validate => true"

Rails 4: Append to a "has_many" relation without saving to DB

How to create schema in sql

Rails first_or_create ActiveRecord method

Cloning a record in rails, is it possible to clone associations and deep copy?

How do I set up a kind of "belongs_to :through" association without a direct belongs_to?

Merge two ActiveRecord arrays and order by created_at

How to translate active record model validations

Creating or updating a has_one ActiveRecord association

How can I have ActiveRecord's pluck also return the column name for rendering in json?

Correct setting of database connection pool database.yml for single-threaded Rails applications

Understanding how establish_connection works in ActiveRecord

Using a scope from a related model in another scope

first_or_create vs find_or_create_by

Relation passed to #or must be structurally compatible. Incompatible values: [:references]

Remove object from has_many but don't delete the original record in Rails?

Codeigniter LIKE with wildcard(%)

Rails Active Record - Get ids array from relation