Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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

Postgres/ActiveRecord sorting by letters then numbers?

How do I convert has_one_attached to has_many_attached to an exising table with has_one attachments?

How should I set initialise instance variables on an ApplicationRecord object?

Floats, Decimals, or Integers

ruby activerecord decimal

Use Rails 'contains operator' (or alternative) for search with multiple values

No database file specified. Missing argument: database

counter_cache not decrementing for has_many associations in ActiveReord

Rails - query a has_many association

Rewriting an ActiveRecord query as recursive SQL

Rails: validates_uniqueness_of with conditions not working as expected

Skip instance in conditional callback block (lambda or Proc)

Rails 4 get column names in raw activerecord query