Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How do you prevent database changes inside a Rails ActiveRecord before_create filter from getting rolled back when it returns false?

Should I use ON DELETE CASCADE, :dependent => :destroy, or both?

How to filter the values of a model column, that don't exist in the database?

Rails 5: "belongs_to through" kind of association

Find last created_at record

Why is Rails ActiveRecord hitting the database twice?

Subtract two ActiveRecord::Relation objects

How to save related Models in one transaction?

ActiveRecord update_attributes to ignore invalid keys

How to declare an array data type in rails generator

Belongs To Foreign Key

Pass custom argument to rails event model callbacks?

ActiveRecord custom attributes used in rails 3 not working in rails 4

ActiveRecord: call find with same id twice, get the same instance?

Getting the ActiveRecord_Relation that received the class method call

How to include coalesce() in ActiveRecord statement

Eager Loading in Many to Many relationship in Rails 4