Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

accessing current_user in model; has to be a better way for logging and auth

how to set unique constraint over 2 columns when one column can be null

Many To Many vs One to Many

Rails 6 while running sidekiq database configuration does not specify adapter

Yii Active Record COALESCE not displaying result

php activerecord yii coalesce

Trouble optimizing Rails queries in controller

Finding all combinations of record

Flag invalid attribute in ActiveRecord

How to combine create and update actions in Rails?

Rails: Query n IDs before and after some ID

Ruby on rails activerecord joins - select fields from multiple tables

RAILS3: to_JSON with multiple objects and includes

sort list of objects by property on associated object

Can I use ActiveRecord relationships with fields from an Hstore?

Rails, use different join table for `has_many :through` association based on condition

Count sold products by specific families in orders by date

How to make Rails relations accessible?

Rails .includes() returning 'undefined method'