Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

How to pass data to IN query in rails 3

ruby-on-rails check if query result is empty (Model.find)

New model object through an association

Rails: ensure capitalization in model?

How can I store a hash in my database?

ruby activerecord hash

How to get highest count of associated model (Rails)?

Rails includes nested relations

find_or_create_by in Rails 3 and updating for creating records

Rails ActiveRecord - Search on Multiple Attributes

Is it possible to add a function-based database-agnostic index via a Rails/ActiveRecord migration?

Is there any good way to DRY up scope / predicate logic duplication?

ActiveRecord: Adding condition to ON clause for includes

Rails 3 adding database name to table makes includes default to eager load