Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails: Eager loading as_json includes

Return false and rollback in after_save callback

How to create ActiveRecord tableless Model in Rails 5?

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?