Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

find_by_sql renders an array

How to automatically assign parent ID as foreign key when using nested attributes?

When using first_or_create, in the after_create callback, the Model queries get extra conditions added automatically

How to reorder activerecord array based on array of ids

Can't create belongs_to association in controller

Different databases for specs

How to use a group by clause on an ActiveRecord query using a Hstore key? [closed]

DelayedJob breaking validates unique constraints in ActiveRecord

why is Model.all different to Model.where('true') in rails 3

PG_SEARCH gem search specific columns only for JSON

Devise error undefined method `email'

Rails ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "pg_range" does not exist LINE 3: LEFT JOIN pg_range as r ON oid = rngtypid

ActiveRecord adding rating range in migration file

Rails 3 - Turning multiple counts into a single query - OrderedHash

ActiveRecord find by model's array attribute containing a value (not association array)

Why is Model.associations an Array, but still supports sql queries? [duplicate]

Rails 3.2 ActiveRecord Transaction