Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Hacking ActiveRecord: add global named scope

Is there find_or_create_by_ that takes a hash in Rails?

handling order with has_many through relationship

Rails polymorphic association: Restrict allowed classes

remove field name from object validation message

How can I permanently ignore a database column in my ActiveRecord::Base class?

Check if at least one record have a given attribute set to true

Yii2 select by max date?

mysql activerecord yii2

Overriding ApplicationRecord initialize, bad idea?

How does the ActiveRecord pattern differ from the Domain Object or Data Mapper pattern?

How to convert records including 'include' associations to JSON

after_create and after_save order

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