Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Table alias in ActiveRecord?

undefined method `[]' for nil:NilClass for Rails model on new

Default size of integer in Rails tables (MySQL)

rails4 collection select with has_many through association and nested model forms

Rails ActiveRecord eager_load with INNER JOIN

Turn results of a raw SQL query to JSON (and CSV)

Rails validation confirm true is not case sensitive?

ActiveRecord attribute depends of a calculation of other model

Prevent NULL for active record INSERT?

How Can I Get An Enum's String Value Dynamically?

MySQL REGEXP using Rails ActiveRecord

rails4 pluck with order and limit

Rails 2.3.5 Problem Building Conditions Array dynamically when using in (?)

What happens after I add an index to a large table in a production Rails app and then migrate?

Why is this SQL generating a temporary table and running so slow?

Phone is defined as string in db schema, but integers are saving as valid in Ruby