Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Retrieve data from junction table in Yii2

php mysql activerecord yii2

Rails Query group and pluck to Return Array of IDs grouped by another attribute?

Is there a java implementation of the ActiveRecord pattern that is built on top of Hibernate, similar to Castle Windsor? [closed]

ActiveRecord::UnknownAttributeError?

How to test a method on an ActiveRecord::Relation object in rspec?

what would happen if you use belongs_to without having a corresponding has_one?

Rails transaction: save data in multiple models

How do I create many-one relationships using Scaffold?

How can execute multiple statements in one query with Rails?

Rails Activerecord/Postgres time format

Why are Rails model association results not naturally ActiveRecord::Relations?

Which one is faster between map, collect, select and pluck?

Rails - Paperclip validating attachment size when it shouldn't be?

Dependent factories in Factory Girl

Reset counter cache on all data of model

Rails: setting column alias attribute with find_by_sql

Rails: How do I call `self.save` in my model and have it persist in the database?

Does ActiveRecord perform inserts/deletes in bulk when inside a transaction?

Failing validations in join model when using has_many :through

ActiveRecord: can't use `pluck` after `where` clause with eager-loaded associations