Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Rails - Cancel destroy on before_destroy callback

How do I save a current date/time for a DATETIME column in rails 3?

What is the difference between the build and create method in ActiveRecord relations?

How can I count the result of an ActiveRecord .group query? Chaining .count returns a hash

How to increase ActiveRecord thread pool size on heroku

Writing arbitrary attributes on a model is deprecated. (Multiple belongs_to on model)

Using ActiveRecord find_in_batches method for deleting large data

Rails 3 ActiveRecord query using both SQL IN and SQL OR operators

How to revert/undo local changes to an Activerecord object?

CodeIgniter query: How to move a column value to another column in the same row and save the current time in the original column?

how to update a record without worrying about primary key

Rails 3. How to perform a save action on all records?

MySQL INNER JOIN - '=' vs 'like'

Rails 4 - how to give alias names to includes() and joins() in active record querying

How to extend ActiveRecord::Migration with additional methods?

Rails 5 SQL Injection

Namespaced models in Rails: What's the state of the union?

Pros/Cons of storing serialized hash vs. key/value database object in ActiveRecord?

Rails 5: Add belongs_to association with custom name to model, and migration

Rails 3 ActiveRecord abstract objects