Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

Help with rails active record querying (like clause)

Rails: How do I define an association extension in a module that gets included in my AR model?

ActiveRecord: make all text fields have strip called on them before saving, unless specified otherwise

Rails - Boolean field not saved on PostgreSQL / Heroku

How can I use validations in Rails 3.1 to enforce composite uniqueness?

rspec - how to check that allow_blank exists

Understanding "attribute_will_change!" method

Rails: multiselect filtering with a blank option

ActiveRecord find position (index) of record within relation based off value of attribute

Is it possible to make ActiveRecord create objects for rows loaded using the :joins option?

ActiveRecord Join table for legacy Database

efficient bulk update rails database

belongs_to with a custom class_name not producing proper foreign key in Rails 3

How do I delete multiple records with dependent records in ActiveRecord

How to format values before saving to database in rails 3

get count in relation table in yii2 Activerecord

php activerecord yii yii2

How to perform an active record search based on a regular expression

How to avoid crashing Rails app after removing column from table?

How to access a variable that was created in a transaction?

How to save something to the database after failed ActiveRecord validations?