Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to cache a query in Ruby on Rails 3

RoR: MyModel.descendants returns [] in a view after the first call?

Yii - Get min, max of a column using active record

php activerecord yii

Rails ActiveRecord::StatementInvalid: PG::Error: ERROR: missing FROM-clause entry for table

Rails, order by nested value

Sequel in conjunction with ActiveRecord any gotchas?

Rails: can I use polymorphic references with non-integer primary keys?

warning: Time#succ is obsolete; use time + 1

Undefined method 'add_reference'

has_many association migration in Rails

How to make LIKE clause case-insensitive?

Rails: Load just one attribute not a whole model

Rails: Eager loading as_json includes

Return false and rollback in after_save callback

How to create ActiveRecord tableless Model in Rails 5?

How can I sort a list of ActiveRecords by an attribute length?

Is rails 4 find_by deprecated?

Preventing ActiveRecord save() on an instance

Return Single Field with Rails Query

Active Record set_table_name error for .sqlite file