Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Ruby on Rails: writing a migration to move a column to another table, merge duplicates, then match IDs

How do I avoid the implicit sequence on the id field during rails migration

Accessing a class method from within an Active Record scope?

Compared with non class/module error

CodeIgniter active record query to get rows from one table which relate to at least one row in another table

How to measure ActiveRecord's size on memory?

Rails select distinct association from collection

How to mock the create call for a new ActiveRecord object in RSpec?

Solving A Race Condition When Using find_or_create_by

update_all with a method

Preview activerecord queries in rails console?

Activerecord return objects that match ALL attributes in array

Yii2 ActiveRecord saves null values instead of real values

activerecord yii2

parameter based joins not susceptible for sql injection

Lightweight method to order on boolean attribute in true/false/nil order

Using 'end' as column name in Ruby on Rails (MySQL)

How to to set the default value of a virtual attribute using the attribute API

Monitor database table for external changes from within Rails application