Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in activerecord

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?

Making Rails #destroy_all run faster

How to save data with has_many :through

Rails - how to select all records by ID range

Active Model Forbidden attributes error