Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to validate presence of associated records in case of has_many, through: association?

Rails has_one build association deletes existing record even if new record is not valid

Yii2: How to make an attribute of an ActiveRecord object read-only from the outside?

activerecord yii2 rules

Having trouble with Rails query, ambiguous column name

default_scope with :joins and :select

HABTM best practice

Testing models with multiple database connections in Rails using ActiveRecord

Rails query by number of digits in field

Ambiguous column name error in CodeIgniter query with dynamic columns and tables

Table alias in ActiveRecord?

undefined method `[]' for nil:NilClass for Rails model on new

Default size of integer in Rails tables (MySQL)

rails4 collection select with has_many through association and nested model forms

Rails ActiveRecord eager_load with INNER JOIN

Turn results of a raw SQL query to JSON (and CSV)