Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

ActiveJob GlobalID and in-memory ActiveRecord objects

In Rails' ActiveRecord, what does a question mark at the end of a method name corresponding to a column do?

Arel - How to coalesce a field and a string literal in an Arel query?

has_many :through, not reloaded/reset

Can I tell activerecord to not convert "datetime" data to objects when I access?

ActiveRecord errors, how do I find out the locale path to change the messages?

Rails query timestamp between two hours

match all in active record relations in a query

Different behavior between multi-line vs. in-line block

FactoryGirl association Parent can't be blank

Decorator pattern and type mismatch on ActiveRecord association

Using Paginate with constructed query in active record

Calculate Month Statistics

How can I access to related object by string field name in Ruby on Rails ActiveRecord?

undefined method 'keys' when using upsert

SyntaxError: (irb):26: both block arg and actual block given

Convert array to ActiveRecord::Relation