Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Why does activerecord not populate an auto-incrementing column in the item returned from a create?

Can an ActiveRecord `.select` method have an interpolated string like in `.where`?

RangeError for simple integer assignment in Rails 4.2.0 that should be caught by validation

Return nil object if after_initialize callback returns false

has_one, :through => model VS simple method?

Query and order by number of matches in JSON array

Order by count on has_many relation

Why ActiveRecord::Base.connected? is false, after calling establish_connection

ruby testing activerecord

PHP activerecord mysql server has gone away

undefined method `includes' for object instance

Rails ActiveRecord Includes with Inner Join

Ruby on Rails ActiveRecord: pluralization

How to build a JSON response made up of multiple models in Rails

Ruby on Rails -- undo mark_for_destruction

Rails group/having/count query

Custom scope on has_many, :through association (Rails 4)

Validate on inclusion within array of options OR be nil

Rails model "before_filter"?

Rails transaction not rolling back

Retrieve data from junction table in Yii2

php mysql activerecord yii2