Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Is there a way to validate a specific attribute on an ActiveRecord without instantiating an object first?

How to sort by created_at column of association in rails?

Got ActiveRecord::AssociationTypeMismatch on model save

How to keep track of model history with mapping table in Ruby on Rails?

Bulk update attribute on multiple models in ActiveRecord?

Find by multiple conditions in rails

Rails migration, references `unique: true` isn't generating `unique: true` in schema causing constancy_fail check to fail

attr_accessible in rails Active Record

How to update only specific fields of an active record in Yii?

Why is before_save not getting called for my ActiveRecord model?

ActiveRecord + CodeIgniter - Return single value from query, not in array form

How to sort Rails AR.find by number of objects in a has_many relationship

Mixing ActiveRecord find Conditions

Creating a PostgreSQL sequence to a field (which is not the ID of the record)

Rails Active Record case insensitive find

Understanding MongoMappers many relationship

Rails - How to force associations to use alias table name

Active Record scope chaining, ignore joins, if already joined

Rails: monkey-patching ActiveRecord::Base vs creating a Module