Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in rails-activerecord

How can I access a Postgres column default value using ActiveRecord?

In Rails 4.2, how do I convert an integer to an enum?

Ruby on Rails - find where value equals NaN

Rails: Order a model by the last element of a has_many association

It is possible to use the new ActiveRecord::Attributes API in a PORO?

Using Active Record to Find a Join Table

Rails multiple Has_one relationship to same model

Conditionally validating uniqueness of a boolean in Rails

Couldn't find Listing with 'id'=all, Search Form

How do I query for models with empty serialized fields?

What do I pass to schema_migration in ActiveRecord::MigrationContext#new

Applying aggregate function SUM together with GROUP BY

Returns inside transactions and ActiveRecord::Rollback

Use scope of a belongs_to association to scope in the first model - Ruby on Rails

Using foreign_key in rails associations has_many

Where with OR condition for the same column in Rails

Easy Ruby on Rails question -- how to attach comments to both users and articles?

ActiveRecord: Select max of limit

Sending array of values to a sql query in ruby?

Rails - Optimistic locking always fires StaleObjectError exception