Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Ruby on Rails order by id (and version?)

ActiveRecord not saving any attributes, saving default values

Validating an attribute to be an integer only

Custom validation for file size in rails before being uploaded

Running destroy_all on an array?

Including a model's virtual attributes when converting a record to JSON in Rails

How to truncate a join table in rails?

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