Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

has_secure_password: how to require minimum length

Ignore 'read-only' column in creates and updates in Ruby ActiveRecord

ruby activerecord view db2

Keep a log of user events in rails

Rails 3 find_or_create_by

Rails pass additional parameter to a model

Ruby instance variables versus ActiveRecord attributes

A has_many Bs where B has no primary key

Why does this transaction not work in ActiveRecord?

How to store RDF graphs within a data storage?

Prepare and execute statements with ActiveRecord using PostgreSQL

How to update a column without loading the object in ActiveRecord

How to test if carrierwave file changed?

activemodel - updating children of object when saving parent

to_json on single value can't be parse back

Rails - handling multiple different time zones on the same request

Active Record - Find and Update (only if object exists)

Resolve N + 1 in case of instance dependent scope

Postgres Rails Adapter is thinking Bigint/Varchar is Integer - causes exception when saving

Pluck associated model's attribute in Rails query

Weird backticks behaviour in Active Record in CodeIgniter 2.0.3