Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

How to get data of last 24 hours on top in rails

Rails 5 Eager load and then find_by

Constructing a 1-many relationship with custom string foreign keys in PGSQL ActiveRecord

Write query with JOINs, GROUP BY, and SUM()s using CodeIgniter's query building methods

yii2 - fetch data with activerecord in FETCH_KEY_PAIR array format

activerecord yii2

Get series of counts with conditions using ActiveRecord

Modyfying before_action

unable to remove duplicate records using active record query

CodeIgniter SQL query - how to sum values for each month?

How to write Rspec spec for the following query

Get elements by id array and order by this array

how to handle a :reject_if if a new record and not an update

How do I redirect to 404 page when a user record does not exist?

Rails: Concat Two CollectionProxies with two different models

Leaving date/time blank in Rails datetime_select