Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

When creating objects, created_at stores microsecond precision that json can't match

Ruby on rails return a string if a model attribute is nil

How to get the count of unsaved associated records? [duplicate]

ruby rails-activerecord

How to execute a query per db connection

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