Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails 3.1, why I get ActiveRecord::UnknownAttributeError: unknown attribute in spec test?

Ignore columns in ActiveRecord

Complex JOIN with ActiveRecord and Rails 3

Standalone ruby -- How to load different environments from database.yml

How to sort activerecord query by specific prority

How to use 'DISTINCT' in Codeigniter Active Records?

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)