Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Why does ActiveRecord's :include do two queries?

Do ActiveRecord locks have to occur inside a transaction?

Change all primary keys of type integer to bigint, including references

Is there a way to enforce a schema for a JSON field within a Postgresql record in Rails?

Compared with non class/module error

update_all with a method

Is there any guarantee that created_at and updated_at are equal right after the first save?

How to to set the default value of a virtual attribute using the attribute API

Rails: calling standard validations from a custom validator

Size of an ActiveRecord_Relation object

has_one association not working with includes

Affected rows for ActiveRecord::Base.connection.execute with Postgres

ActiveRecord boolean validation accepting non-boolean values

Rails after_save callback not firing

How do you get a count of a subquery in Active Record?

Finding in array of active record results