Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

Rails 4 validation message: removes "_id" from message

most frequent value in active record coloumn

Sort by either created_at or updated_at (whichever is more recent) Ruby on Rails

How did I get a IrreversibleMigration?

Get all Rails records from an array of IDs

Trying to search by first_name and last_name

Postgresql jsonb (Rails) - query multiple values, via an array, in a single json attribute

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